Exemplo n.º 1
0
        public Transition PreparePanelTransition(PanelTransition t, OnTransitionFrameDelegate onFrameDel)
        {
//			Debug.Log ("[" + Time.time + "] PreparePanelTransition " + t);
            var tr = new PanelAnimatorTransition(this, m_animatorTransitionLayer, t, onFrameDel);

            return(tr);
        }
Exemplo n.º 2
0
        public Transition PrepareTransition(PanelTransition t, OnTransitionFrameDelegate onFrameDel = null)
        {
            Transition trans;

            GetTransition(t.name, out trans);
            return(trans);
        }
Exemplo n.º 3
0
        public Transition PreparePanelTransition(PanelTransition t, OnTransitionFrameDelegate onFrameDel)
        {
            if (t == PanelTransition.IN)
            {
                return(this.showTransition);
            }

            if (t == PanelTransition.OUT)
            {
                return(this.hideTransition);
            }

            throw new NotSupportedException("only supports PanelTransition.IN and PanelTransition.OUT recevieved " + t);
        }
Exemplo n.º 4
0
        public Transition PreparePanelTransition(PanelTransition t, OnTransitionFrameDelegate onFrameDel)
        {
            var tr = new PanelAnimatorTransition(this, m_animatorTransitionLayer, t, onFrameDel);

            return(tr);
        }
Exemplo n.º 5
0
 public Transition PrepareTransition(PanelTransition t, OnTransitionFrameDelegate onFrameDel)
 {
     return(PreparePanelTransition(t, onFrameDel));
 }
Exemplo n.º 6
0
 public PanelAnimatorTransition(AnimatorPanel owner, int transitionLayer, PanelTransition t, OnTransitionFrameDelegate onFrameDelegate)
 {
     m_owner = new SafeRef <AnimatorPanel>(owner);
     this.transitionLayer     = transitionLayer;
     this.panelTransition     = t;
     this.animatorTargetState = Animator.StringToHash(t.name);
     this.onFrameDelegate     = onFrameDelegate;
     this.maxTransitionTime   = 1f;
 }
Exemplo n.º 7
0
 public Transition PrepareTransition(PanelTransition t, OnTransitionFrameDelegate onFrameDel = null)
 {
     return(this._panel.PrepareTransition(t, onFrameDel));
 }