public ShopRechargeOtherController(string uiName) { sName = uiName; _itemID = 0; ELevel = UILevel.HIGHT; prefabsPath = new string[] { UIPrefabPath.SHOP_RECHARGE_OTHER_WIN }; MsgCallManager.AddCallback(ProtoID.sc_shop_all_item_base_config, OnShowAllItemBaseConfig); //登录回调 }
//红点是否显示 public AllServerBroadcastController(string uiName) { sName = uiName; ELevel = UILevel.TOP; prefabsPath = new string[] { UIPrefabPath.BROADCAST_WIN }; broadcastContent = new List <string>(); MsgCallManager.AddCallback((ProtoID.sc_player_sys_notice), ShowBroadcast); MsgCallManager.AddCallback(ProtoID.sc_tips, OnServerTip); }
void Awake() { controller = (PMController)UIManager.GetControler(UIName.PM_WIN); inputEditbox = transform.Find("Container/Win/InputText").GetComponent <UIInput>(); _lb = inputEditbox.GetComponent <UILabel>(); UIEventListener.Get(transform.Find("Container/Win/CloseButton").gameObject).onClick = OnClickClose; UIEventListener.Get(transform.Find("Container/Win/send").gameObject).onClick = OnClickButton1; MsgCallManager.AddCallback(ProtoID.sc_player_chat, OnChatBack);//登录回调 }
public LoginInputController(string uiName) { sName = uiName; ELevel = UILevel.HIGHT; prefabsPath = new string[] { UIPrefabPath.LOGIN_INPUT_WIN }; MsgCallManager.AddCallback(ProtoID.SC_LOGIN_REPLY, OnLginReply); //登录回调 EventSystem.RegisterEvent(EventID.SOKECT_CONNECT_RESULT, OnEventSocketConnectOK); //连接socket回调 GameObject sceneObj = GameObject.Find("Scene"); if (sceneObj) { startUpMono = sceneObj.GetComponent <StartUpScene>(); } }
public void Start() { Continue(); MsgCallManager.AddCallback(ProtoID.SC_COMMON_HEARTBEAT_REPLY, OnMsgHeartBeat); }