protected override IEnumerator DestroyAnimationCoroutine(Unit unit) { SimpleUnit simpleUnit = unit as SimpleUnit; simpleUnit.Animator.SetTrigger("Death"); yield return(new WaitForSeconds(1)); Destroy(unit.gameObject); }
public override void Init() { _simpleUnit = (SimpleUnit)_unit; base.Init(); }