create new enemy class

This commit is contained in:
cyber-dream 2022-06-03 12:29:12 +03:00
parent ed02e7a974
commit f273d8448c
3 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9e81f19d421a03bcb8c6cb48e91d8efd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,22 @@
using UnityEngine;
using static BalanceScriptableObject.SpawnManagerScriptableObject;
namespace Enemies
{
public abstract class BaseEnemy : MonoBehaviour
{
public abstract void SetEnemyData(EnemyRow value);
}
public class Enemy : BaseEnemy
{
private EnemyRow enemyData;
public override void SetEnemyData(EnemyRow value)
{
enemyData = value;
}
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 9289964b69be1d94b9e7a72bc9cf4a8b guid: 5efd4ab8f726d4a9591d78c8d23c9c97
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2