Exemple #1
0
        protected override IEnumerator DestroyAnimationCoroutine(Unit unit)
        {
            SimpleUnit simpleUnit = unit as SimpleUnit;

            simpleUnit.Animator.SetTrigger("Death");
            yield return(new WaitForSeconds(1));

            Destroy(unit.gameObject);
        }
Exemple #2
0
 public override void Init()
 {
     _simpleUnit = (SimpleUnit)_unit;
     base.Init();
 }