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

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