Exemplo n.º 1
0
 private void animatorIn()
 {
     InAction.OnStartMethod();
     if (animator != null)
     {
         animator.speed = 1f / AppearTime;
         animator.Play(k_OpenTransitionName);
         StartCoroutine(Open(animator));
     }
 }
Exemplo n.º 2
0
    private void animatorIn()
    {
        InAction.OnStartMethod();
        if (animator != null)
        {
            animator.speed = 1f / AppearTime;
            animator.SetInteger("state", (int)UIDisplayState.Showining);
            DelayAction delay = new DelayAction(AppearTime, null, () => { InAction.OnCompleteMethod();
                                                                          animator.SetInteger("state", (int)UIDisplayState.Normal); });
            delay.Play();
//			StartCoroutine (Open ());
        }
    }
Exemplo n.º 3
0
    private void noAnimationIn()
    {
        if (InAction.OnStartMethod != null)
        {
            InAction.OnStartMethod();
        }

        transform.localScale = Vector3.one;

        if (InAction.OnCompleteMethod != null)
        {
            InAction.OnCompleteMethod();
        }
    }