create new enemy class
This commit is contained in:
parent
ed02e7a974
commit
f273d8448c
8
ldjam50/Assets/Scripts/Enemies.meta
Normal file
8
ldjam50/Assets/Scripts/Enemies.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9e81f19d421a03bcb8c6cb48e91d8efd
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
22
ldjam50/Assets/Scripts/Enemies/BaseEnemy.cs
Normal file
22
ldjam50/Assets/Scripts/Enemies/BaseEnemy.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 9289964b69be1d94b9e7a72bc9cf4a8b
|
guid: 5efd4ab8f726d4a9591d78c8d23c9c97
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
Loading…
Reference in New Issue
Block a user