21 lines
427 B
C#
21 lines
427 B
C#
|
using System;
|
|||
|
using UnityEditor;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
|
|||
|
[CreateAssetMenu(fileName = "EnemyConfig")]
|
|||
|
public class EnemyConfig : ScriptableObject
|
|||
|
{
|
|||
|
public EnemyCharacteristics enemyCharacteristics;
|
|||
|
}
|
|||
|
[Serializable]
|
|||
|
public class EnemyCharacteristics
|
|||
|
{
|
|||
|
public string name;
|
|||
|
public int maxHp;
|
|||
|
public Sprite sprite;
|
|||
|
[Range (1,3)]
|
|||
|
public int minimumPosition;
|
|||
|
[Range (1,3)]
|
|||
|
public int maximumPosition;
|
|||
|
}
|