private void animatorOut() { OutAction.OnStartMethod(); if (animator != null) { animator.speed = 1f / DisappearTime; animator.Play(k_ClosedStateName); StartCoroutine(Closed(animator)); } }
private void noAnimationOut() { if (OutAction.OnStartMethod != null) { OutAction.OnStartMethod(); } if (OutAction.OnCompleteMethod != null) { OutAction.OnCompleteMethod(); } }
private void animatorOut() { OutAction.OnStartMethod(); if (animator != null) { animator.speed = 1f / DisappearTime; animator.SetInteger("state", (int)UIDisplayState.Showouting); DelayAction delay = new DelayAction(AppearTime, null, () => { animator.SetInteger("state", (int)UIDisplayState.Disable); OutAction.OnCompleteMethod(); }); delay.Play(); // StartCoroutine (Closed ()); } }