add crown

This commit is contained in:
Crizomb 2025-01-23 10:37:07 +01:00
parent 7d3b4ced0e
commit 777fd0380c
25 changed files with 2132 additions and 5 deletions

View file

@ -16,13 +16,18 @@ public class MinecraftUnit : AbstractUnit
[field: SerializeField] public BaseCapacity Capacity { get; private set; }
// Not required
[field: SerializeField] public Animator Animator { get; private set; }
void OnValidate()
new void Awake()
{
base.Awake();
if (IsQueen)
{
transform.Find("Crown").gameObject.SetActive(true);
}
}
// Abstract implementation for compatibility with other team