private void Awake() { if (Instance == null) { Instance = this; } }
public void onClickChongZhi() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ShouChongPanelScript_hotfix", "onClickChongZhi")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ShouChongPanelScript_hotfix", "onClickChongZhi", null, null); return; } ShopPanelScript.create(2); Destroy(gameObject); }
public void onClickBuy() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("LaBaPanelScript_hotfix", "onClickBuy")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.LaBaPanelScript_hotfix", "onClickBuy", null, null); return; } Destroy(gameObject); ShopPanelScript.create(3); }
// Use this for initialization void Start() { instance = this; SocketEventHandle.getInstance().startPayOrderResponse += startPayOrderCallback; SocketEventHandle.getInstance().paySuccessResponse += paySuccessCallback; waitingPanel = transform.Find("Panel_wating").gameObject; daliTitle = transform.Find("head_decro").Find("headDescro").GetComponent <Text>(); daliTitle.text = "游戏代理招募:" + daili; CopyWechat = transform.Find("head_decro").Find("CopyWechat").GetComponent <Button>(); CopyWechat.onClick.AddListener(copyWechat); }
public void onClickUseProp() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("PropDetailPanelScript_hotfix", "onClickUseProp")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.PropDetailPanelScript_hotfix", "onClickUseProp", null, null); return; } // 喇叭 if (m_propInfo.m_id == (int)TLJCommon.Consts.Prop.Prop_laba) { LaBaPanelScript.create(); } // 话费 else if ((m_propInfo.m_id == (int)TLJCommon.Consts.Prop.Prop_1yuanhuafei) || (m_propInfo.m_id == (int)TLJCommon.Consts.Prop.Prop_5yuanhuafei) || (m_propInfo.m_id == (int)TLJCommon.Consts.Prop.Prop_10yuanhuafei)) { UseHuaFeiPanelScript.create(m_propInfo, m_useNum); } //徽章 else if (m_propInfo.m_id == (int)TLJCommon.Consts.Prop.Prop_huizhang) { ShopPanelScript.create(3); } //话费碎片 else if ((m_propInfo.m_id == 120) || (m_propInfo.m_id == 121) || (m_propInfo.m_id == 122)) { Activity.create(4); } // 其他 else { NetLoading.getInstance().Show(); LogicEnginerScript.Instance.GetComponent <UsePropRequest>().SetPropId(m_propInfo.m_id); LogicEnginerScript.Instance.GetComponent <UsePropRequest>().CallBack = onReceive_UseProp; LogicEnginerScript.Instance.GetComponent <UsePropRequest>().OnRequest(); } }
private void removeListener() { instance = null; SocketEventHandle.getInstance().startPayOrderResponse -= startPayOrderCallback; SocketEventHandle.getInstance().paySuccessResponse -= paySuccessCallback; }