public void VipFunctionDrugStore() { OnClickClose(); var e = new UIEvent_RechargeFrame_OnClick(2); EventDispatcher.Instance.DispatchEvent(e); }
public void OnGUI() { if (UnityEngine.Event.current.type == EventType.MouseDown) { //记录鼠标按下的位置 first = UnityEngine.Event.current.mousePosition; } if (UnityEngine.Event.current.type == EventType.MouseUp) { //记录鼠标拖动的位置 second = UnityEngine.Event.current.mousePosition; if (second.x < first.x) { //响应向左事件 var e = new UIEvent_RechargeFrame_OnClick(5); e.exData = 1; EventDispatcher.Instance.DispatchEvent(e); } if (second.x > first.x) { //响应向右事件 var e = new UIEvent_RechargeFrame_OnClick(5); e.exData = -1; EventDispatcher.Instance.DispatchEvent(e); } first = second; } }
private void OnClick() { var datamodel = ListItem.Item as RechargeItemDataModel; var e = new UIEvent_RechargeFrame_OnClick(0, datamodel.TableId); EventDispatcher.Instance.DispatchEvent(e); }
public void VipInfoPrevious() { var e = new UIEvent_RechargeFrame_OnClick(5); e.exData = -1; EventDispatcher.Instance.DispatchEvent(e); }
public void VipFunctionDrugStore() { var e = new UIEvent_RechargeFrame_OnClick(2); EventDispatcher.Instance.DispatchEvent(e); // var arg = new StoreArguments { Tab = 0 }; // var e = new Show_UI_Event(UIConfig.StoreUI, arg); // EventDispatcher.Instance.DispatchEvent(e); }
public void VipFunctionStore() { if (PlayerDataManager.Instance.GetRes((int)eResourcesType.VipLevel) < 3) { var str = GameUtils.GetDictionaryText(100000675); GameUtils.ShowHintTip(str); } else { var e = new UIEvent_RechargeFrame_OnClick(3); EventDispatcher.Instance.DispatchEvent(e); } }
public void OnClickDepot() { if (PlayerDataManager.Instance.GetRes((int)eResourcesType.VipLevel) < 3) { var str = GameUtils.GetDictionaryText(100000675);//VIP3将开启随身仓库 GameUtils.ShowHintTip(str); } else { OnClickClose(); var e = new UIEvent_RechargeFrame_OnClick(3); EventDispatcher.Instance.DispatchEvent(e); } }
public void BuyKaiFuTeHui() { var e = new UIEvent_RechargeFrame_OnClick(6); EventDispatcher.Instance.DispatchEvent(e); }
public void BuyLifeCard() { var e = new UIEvent_RechargeFrame_OnClick(0, -1); EventDispatcher.Instance.DispatchEvent(e); }
public void VipFunctionStore() { var e = new UIEvent_RechargeFrame_OnClick(3); EventDispatcher.Instance.DispatchEvent(e); }
public void VipFunctionQuickRepair() { var e = new UIEvent_RechargeFrame_OnClick(4); EventDispatcher.Instance.DispatchEvent(e); }
public void BannerBuyButton() { var e = new UIEvent_RechargeFrame_OnClick(1); EventDispatcher.Instance.DispatchEvent(e); }