2022-01-13 11:00:37 +03:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System;
|
2022-01-12 10:06:03 +03:00
|
|
|
|
using UnityEditor;
|
|
|
|
|
using UnityEngine;
|
2022-01-13 11:00:37 +03:00
|
|
|
|
using UnityEngine.Events;
|
2022-01-12 10:06:03 +03:00
|
|
|
|
|
2022-01-17 18:24:11 +03:00
|
|
|
|
[CreateAssetMenu(fileName = "EnemyConfig", menuName = "Configs/EnemyConfig")]
|
2022-01-12 10:06:03 +03:00
|
|
|
|
public class EnemyConfig : ScriptableObject
|
|
|
|
|
{
|
|
|
|
|
public EnemyCharacteristics enemyCharacteristics;
|
2022-01-13 11:00:37 +03:00
|
|
|
|
|
2022-01-12 10:06:03 +03:00
|
|
|
|
}
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class EnemyCharacteristics
|
|
|
|
|
{
|
|
|
|
|
public string name;
|
|
|
|
|
public int maxHp;
|
2022-01-13 11:00:37 +03:00
|
|
|
|
public int damage;
|
2022-01-15 21:47:03 +03:00
|
|
|
|
public int armor;
|
|
|
|
|
|
2022-01-14 10:42:43 +03:00
|
|
|
|
[Header("Healing")]
|
|
|
|
|
public int selfHealing;
|
|
|
|
|
[Tooltip("this parameter affects the recovery of an ally with minimal hp")]
|
|
|
|
|
public int allyHealing;
|
|
|
|
|
public int allHealing;
|
2022-01-15 23:26:40 +03:00
|
|
|
|
public int addArmorSelf;
|
|
|
|
|
public int addArmorAlly;
|
|
|
|
|
public int addArmorAll;
|
2022-01-12 10:06:03 +03:00
|
|
|
|
public Sprite sprite;
|
2022-01-13 11:00:37 +03:00
|
|
|
|
[Range(1, 3)]
|
2022-01-12 10:06:03 +03:00
|
|
|
|
public int minimumPosition;
|
2022-01-13 11:00:37 +03:00
|
|
|
|
[Range(1, 3)]
|
2022-01-12 10:06:03 +03:00
|
|
|
|
public int maximumPosition;
|
2022-01-13 11:00:37 +03:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|