private void SkipAnimation() { base.StopCoroutine(this.animationCoroutine); this.animationCoroutine = null; for (int i = 0; i < this.animationList.Count; i++) { GashaAnimationBase gashaAnimationBase = this.animationList[i] as GashaAnimationBase; gashaAnimationBase.ClearEndCallback(); this.animationList[i].SkipAnimation(); } this.EndAnimation(); }
private void StartNextAnimation(GashaAnimationBase nowAnimation) { IGashaAnimation gashaAnimation = nowAnimation as IGashaAnimation; if (gashaAnimation != null) { this.animationList.Remove(gashaAnimation); } if (0 < this.animationList.Count) { GashaAnimationBase gashaAnimationBase = this.animationList[0] as GashaAnimationBase; gashaAnimationBase.SetEndCallback(new Action <GashaAnimationBase>(this.StartNextAnimation)); this.animationCoroutine = base.StartCoroutine(this.animationList[0].StartAnimation()); } else { this.EndAnimation(); } }