IEnumerator LateTogglePlayAnimationsAndDestroySelf() { for (int i = 0; i < cachedAnimations.Length; i++) { AnimationNode anim = cachedAnimations[i]; yield return(new WaitForSeconds(waitSecNext)); if (anim != null) { anim.TogglePlay(); } } yield return(new WaitForSeconds(k_WaitSecondsWhenFinished)); Destroy(this.gameObject); }