public void EquipLevelUp() { var e = new UIEvent_SailingOperation(2); EventDispatcher.Instance.DispatchEvent(e); Close(); }
private void OnDisable() { #if !UNITY_EDITOR try { #endif EventDispatcher.Instance.RemoveEventListener(UIEvent_SailingPlayAnimation.EVENT_TYPE, PlayLevelUpAnimation); EventDispatcher.Instance.RemoveEventListener(UIEvent_SailingPlayEatAnim.EVENT_TYPE, PlayEatAllAnim); //EventDispatcher.Instance.RemoveEventListener(UIEvent_SailingFlyAnim.EVENT_TYPE, ExpFlyAnim); EventDispatcher.Instance.RemoveEventListener(AutoRecycleMedalEvent.EVENT_TYPE, OnAutoRecycleMedalEvent); EventDispatcher.Instance.DispatchEvent(new UIEvent_SailingOperation(6)); Binding.RemoveBinding(); var e = new UIEvent_SailingOperation(4, 0); EventDispatcher.Instance.DispatchEvent(e); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }
public void LevelUpClick() { var e = new UIEvent_SailingOperation(3); EventDispatcher.Instance.DispatchEvent(e); }
public void CloseWoodTips() { var e = new UIEvent_SailingOperation(8); EventDispatcher.Instance.DispatchEvent(e); }
public void WoodTipsOk() { var e = new UIEvent_SailingOperation(7); EventDispatcher.Instance.DispatchEvent(e); }
//线的点击 public void AutoShipClick() { var e = new UIEvent_SailingOperation(4); EventDispatcher.Instance.DispatchEvent(e); }