Exemplo n.º 1
0
 public void Open()
 {
     this.m_AnimState  = FlowWindowBase.AnimState.OPEN;
     this.m_AnimStart  = true;
     this.m_FrameCount = Time.get_frameCount();
     this.SetActiveChild(true);
 }
Exemplo n.º 2
0
 public virtual int Update()
 {
     if (this.m_AnimState == FlowWindowBase.AnimState.OPEN)
     {
         if (this.m_AnimStart && this.m_FrameCount != Time.get_frameCount())
         {
             if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Animator, (UnityEngine.Object)null))
             {
                 this.m_Animator.SetBool("close", false);
             }
             this.m_AnimStart  = false;
             this.m_FrameCount = 0;
         }
         if (this.IsState("opened"))
         {
             int pinId = this.OnOpened();
             if (pinId != -1)
             {
                 this.m_Controller.ActivateOutputLinks(pinId);
             }
             this.m_AnimState = FlowWindowBase.AnimState.OPENED;
         }
     }
     else if (this.m_AnimState == FlowWindowBase.AnimState.CLOSE && this.IsState("closed"))
     {
         int pinId = this.OnClosed();
         if (pinId != -1)
         {
             this.m_Controller.ActivateOutputLinks(pinId);
         }
         this.m_AnimState = FlowWindowBase.AnimState.CLOSED;
     }
     return(-1);
 }
Exemplo n.º 3
0
 public void Close(bool immidiate = false)
 {
     this.m_AnimState = FlowWindowBase.AnimState.CLOSE;
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Window, (UnityEngine.Object)null) || !UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Animator, (UnityEngine.Object)null))
     {
         return;
     }
     this.m_Animator.SetBool("close", true);
     if (!immidiate)
     {
         return;
     }
     this.m_Animator.Play("closed");
     this.SetActiveChild(false);
 }