AbstractUnit for cross team compatibility

+ New folder in Scripts
This commit is contained in:
Crizomb 2025-01-09 11:44:24 +01:00
parent 385d8669b1
commit f8e85d7134
18 changed files with 112 additions and 80 deletions

View file

@ -0,0 +1,10 @@
using UnityEngine;
public abstract class AbstractUnit : MonoBehaviour
{
public float price;
[field: SerializeField] public bool IsTeamA { get; private set; }
public abstract bool Attack();
public abstract void TakeDamage(float damage);
}