Пример #1
0
 private void animatorOut()
 {
     OutAction.OnStartMethod();
     if (animator != null)
     {
         animator.speed = 1f / DisappearTime;
         animator.Play(k_ClosedStateName);
         StartCoroutine(Closed(animator));
     }
 }
Пример #2
0
 private void noAnimationOut()
 {
     if (OutAction.OnStartMethod != null)
     {
         OutAction.OnStartMethod();
     }
     if (OutAction.OnCompleteMethod != null)
     {
         OutAction.OnCompleteMethod();
     }
 }
Пример #3
0
    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 ());
        }
    }