Exemple #1
0
        private IEnumerator DestrouSubunitAnimationCoroutine(SubUnit subunit)
        {
            subunit.Animator.SetTrigger("Death");
            yield return(new WaitForSeconds(1));

            Destroy(subunit.gameObject);
        }
Exemple #2
0
 private void RemoveSubUnit(SubUnit subUnit)
 {
     SubUnits.Remove(subUnit);
     if (SubUnits.Count <= 0)
     {
         Destroy();
     }
 }
Exemple #3
0
 private void StartDestroySubunitAnimationCurve(SubUnit subunit)
 {
     StartCoroutine(DestrouSubunitAnimationCoroutine(subunit));
 }