示例#1
0
    public virtual void TransitionIn(TweenCallback completeAction = null)
    {
        if (decorator != null)
        {
            decorator.TransitionIn(completeAction);
        }

        this.gameObject.SetActive(true);

        if (inFrame)
        {
            inFocus = true;
            completeAction();
        }
        else
        {
            Tweener tween = null;
            foreach (Transitional transional in transitionals)
            {
                tween = transional.TransitionIn(transitionTime);
            }

            if (tween != null)
            {
                tween.OnComplete(() => {
                    _selectedItemCord[0] = 0; _selectedItemCord[1] = 0;
                    inFocus = true;
                    inFrame = true;

                    completeAction();
                });
            }
        }
    }
 public virtual void TransitionIn(TweenCallback completeAction = null)
 {
     if (decorator != null)
     {
         decorator.TransitionIn(completeAction);
     }
 }