Пример #1
0
 private void OnMouseExit()
 {
     m_mouseOver = false;
     if (interactable && m_state == ZaapState.Highlight)
     {
         m_state = ZaapState.Normal;
         m_portalFX.SetState(m_state);
     }
 }
Пример #2
0
 private unsafe void OpenPortal()
 {
     //IL_003c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0047: Expected O, but got Unknown
     m_state = ZaapState.Open;
     m_portalFX.SetState(m_state);
     onPortalBeginOpen?.Invoke(this);
     DOVirtual.DelayedCall(m_animData.openCallbackDelay, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), true);
 }
Пример #3
0
 private void OnMouseEnter()
 {
     if (!InputUtility.IsMouseOverUI)
     {
         m_mouseOver = true;
         if (interactable && m_state == ZaapState.Normal)
         {
             m_state = ZaapState.Highlight;
             m_portalFX.SetState(m_state);
         }
     }
 }
Пример #4
0
 private void OnMouseUpAsButton()
 {
     if (interactable && !InputUtility.IsMouseOverUI)
     {
         if (m_state == ZaapState.Clicked)
         {
             OpenPortal();
             return;
         }
         m_state = ZaapState.Clicked;
         m_portalFX.SetState(m_state);
         onClick?.Invoke(this);
     }
 }
Пример #5
0
 public void OnClickOutside()
 {
     m_state = ZaapState.Normal;
     m_portalFX.SetState(m_state);
 }
Пример #6
0
 public void ClosePortal()
 {
     m_state = ZaapState.Normal;
     m_portalFX.SetState(m_state);
 }