private void OnMouseExit() { m_mouseOver = false; if (interactable && m_state == ZaapState.Highlight) { m_state = ZaapState.Normal; m_portalFX.SetState(m_state); } }
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); }
private void OnMouseEnter() { if (!InputUtility.IsMouseOverUI) { m_mouseOver = true; if (interactable && m_state == ZaapState.Normal) { m_state = ZaapState.Highlight; m_portalFX.SetState(m_state); } } }
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); } }
public void OnClickOutside() { m_state = ZaapState.Normal; m_portalFX.SetState(m_state); }
public void ClosePortal() { m_state = ZaapState.Normal; m_portalFX.SetState(m_state); }