void OnDestroy() { CUIHandle.RemoveClick(btnGameInfo, OnClickButtonGameInfo); CUIHandle.RemoveClick(btLogout, OnClickButtonLogout); CUIHandle.RemoveClick(btMenuShow, OnClickButtonMenu); CUIHandle.RemoveClick(btProfile, OnClickProfile); CUIHandle.RemoveClick(btSetting, OnClickSetting); CUIHandle.RemoveClick(btSupport, OnClickSupport); CUIHandle.RemoveClick(btnRecharge, OnClickRecharge); CUIHandle.RemoveClick(btnBack, OnClickButtonBack); CUIHandle.RemoveClick(btnMessage, OnClickButtonMessage); CUIHandle.RemoveClick(btnListWaitingHide, OnClickButtonWaitingHide); CUIHandle.AddClick(btnListWaitingShow, OnClickButtonShowListWaiting); // New Function not Implement CUIHandle.RemoveClick(btnQuest, OnClickNewFuncationAlert); CUIHandle.RemoveClick(btnNew, OnClickEvent); CUIHandle.RemoveClick(btnMarket, OnClickMarket); if (!GameManager.IsExist) { return; } GameManager.Server.EventUpdateUserInfo -= OnUpdateUserInfo; GameManager.Server.EventConfigClientChanged -= ConfigClientChangedHandler; }
// Use this for initialization void Awake() { CUIHandle.AddClick(btLogin, OnClickButtonLogin); CUIHandle.AddClick(btForgotPass, OnClickButtonForgot); CUIHandle.AddClick(btRegister, OnClickButtonRegister); CUIHandle.AddClick(facebook, OnBtnFacebookClick); CUIHandle.AddClick(btnHideRegisterForm, OnHideRegisterForm); CUIHandle.AddClick(btnCalling, OnClickCalling); CUIHandle.AddClick(btnLogo, OnClickLogo); GameManager.Instance.applicationStart.EventLoadConfig += OnLoadBroadcast_Messeage; //khi disconnect mọi event sẽ bị mất if (GameManager.Server != null) { ServerCreateInstance(); } GameManager.Instance.EventServerCreateInstance += ServerCreateInstance; //GameManager.Server.EventLoginResponse += OnLogin; //GameManager.Server.EventJoinRoom += OnAfterJoinRoom; //GameManager.Server.EventPluginMessageOnProcess += PluginMessageOnProcess; //fix when reload sences login applicationstart event not start OnLoadBroadcast_Messeage(); LoadListGameLogo(); if (GameManager.Setting.AllowLockScreen) { Screen.sleepTimeout = SleepTimeout.NeverSleep; } }
void OnDestroy() { CUIHandle.RemoveClick(btnRegister, JoinTournament); CUIHandle.RemoveClick(btnShow, JoinTournament); GameManager.Server.EventPluginMessageOnProcess -= OnProcessPluginMessage; GameManager.Server.EventJoinRoom -= OnAfterJoinRoom; }
void Awake() { gameObject.AddComponent <CUIPopup>().buttonClose = OnCloseClick; CUIHandle.AddClick(btLogin, OnLoginOnClick); CUIHandle.AddClick(btOtherAccount, OnOtherAccountClick); CUIHandle.AddClick(btClose, OnCloseClick); }
void OnDestroy() { if (buttonClose != null) { CUIHandle.RemoveClick(buttonClose, OnClickClose); } }
void OnDestroy() { CUIHandle.RemoveClick(btClose, OnClickBack); CUIHandle.RemoveClick(btSendFeedback, OnClickSendFeedBack); GameManager.Server.EventConfigClientChanged -= ConfigClientHandler; GameManager.Server.EventHelpChanged -= EventHelpHandler; }
void NextNotification() { listNotification.RemoveAt(0); CUIHandle.RemoveClick(buttonClose, OnClickClose); if (listNotification.Count > 0) { Notification next = listNotification[0]; if (next.type == EType.Message) { _StartMessage(next.message, next.timeAutoClose); } else if (next.type == EType.Dialog) { _StartDialog(next.title, next.callbackFuntionYesDialog); } else if (next.type == EType.Confirm) { _StartConfirm(next.title, next.message, next.callbackFuntionYesConfirm, next.callbackFuntionNoConfirm, next.textButtonYes, next.textButtonNo); } else { NextNotification(); } } else { GameObject.Destroy(gameObject); } }
public void SetData(Announcement model) { item = model; description.text = item.description; money.text = Utility.Convert.Chip(item.money); if (item.currentDay) { description.text = "NHẬN NGAY"; SetSprite("to_day"); CUIHandle.AddClick(GetComponent <CUIHandle>(), DoRecieverGift); } else { description.text = item.description; } if (item.receivered) { Color colorGray = new Color(); colorGray.r = 99f / 255f; colorGray.g = 99f / 255f; colorGray.b = 99f / 255f; colorGray.a = 200f / 255f; image.color = colorGray; Color colorTextDesAlpha = new Color(description.color.r, description.color.g, description.color.b, 90f / 255f); Color colorTextMoneyAlpha = new Color(1f, 1f, 1f, 90f / 255f); description.color = colorTextDesAlpha; money.color = colorTextMoneyAlpha; } }
void Awake() { CUIHandle.AddClick(btCreateRoom, CLickButtonCreate); CUIHandle.AddClick(btQuickplay, ClickButtonQuick); CUIHandle.AddClick(btFilter, OnClickButtonFilter); GameManager.Server.EventPluginMessageOnProcess += OnProcessPluginMessage; GameManager.Server.EventJoinRoom += OnAfterJoinRoom; GameManager.Server.EventPublicMessage += OnPublicMessage; GameManager.Server.EventLoadSence += OnJoinGame; //GameManager.Instance.applicationStart.EventLoadAnnounce += OnLoadAnnounceDone; GameManager.Server.EventAdsChanged += CallBackAdsChangeHandler; //BroadcastView.Instance.ShowInLobby(GameManager.Setting.BroadcastMessage); Debug.Log("Channel selected:" + GameManager.Instance.selectedChannel.roomId + "," + GameManager.Instance.selectedChannel.zoneId);; Debug.Log("Channel chan:" + GameManager.Instance.channelRoom.roomId + "," + GameManager.Instance.channelRoom.zoneId); HeaderMenu.Instance.OnClickButtonBackCallBack = delegate() { WaitingView.Show("Đang thoát"); Debug.Log("Channel current selected:" + GameManager.Instance.channelRoom.roomId + "," + GameManager.Instance.channelRoom.zoneId); GameManager.Server.DoJoinRoom(GameManager.Instance.channelRoom.zoneId, GameManager.Instance.channelRoom.roomId); }; // get name channel showNameChannel(); controller.OnTabbarSelectEvent += OnTabbarSelectHandler; containerFilter.GetComponent <LobbyFilter>().FilterCallBack += FilterHandler; containerFilter.GetComponent <LobbyFilter>().CancelFilterCallBack += CancelFilterHandler; }
void Awake() { gameObject.AddComponent <CUIPopup>().buttonClose = OnClickButtonClose; CUIHandle.AddClick(btSend, OnClickButtonForgot); CUIHandle.AddClick(btClose, OnClickButtonClose); }
void Awake() { gameObject.AddComponent <CUIPopup>().buttonClose = OnClickButtonClose; CUIHandle.AddClick(btClose, OnClickButtonClose); CUIHandle.AddClick(btQuit, OnClickButtonQuit); CUIHandle.AddClick(btXacNhan, OnClickButtonXacNhan); }
void NextMessage() { if (Instance.listMessages.Count > 0) { Instance.listMessages.RemoveAt(0); } CUIHandle.RemoveClick(buttonClose, OnClickClose); if (Instance.listMessages.Count > 0) { NotificationView.Notification next = Instance.listMessages[0]; if (next.type == NotificationView.EType.Server) { _StartMessageServer(next.message); } else { NextMessage(); } } else { GameObject.Destroy(gameObject); } }
void OnDestroy() { CUIHandle.RemoveClick(gameObject.GetComponent <CUIHandle>(), OnClickMe); CUIHandle.RemoveClick(btnRemoveFriend, OnClickRemove); CUIHandle.RemoveClick(btnGift, OnClickGift); CUIHandle.RemoveClick(btnSendMsg, OnClickSendMsg); CUIHandle.AddClick(btnInfo, OnClickBtnInfo); }
void Awake() { gameObject.AddComponent <CUIPopup>().buttonClose = OnClickBack; CUIHandle.AddClick(btClose, OnClickBack); CUIHandle.AddClick(btSendFeedback, OnClickSendFeedBack); GameManager.Server.EventConfigClientChanged += ConfigClientHandler; GameManager.Server.EventHelpChanged += EventHelpHandler; }
void Awake() { GameManager.Server.EventPluginMessageOnProcess += OnProcessPluginMessage; CUIHandle.AddClick(btCreate, OnClickCreate); // show name channel showNameChannel(); GameManager.Server.EventLoadSence += OnJoinGame; }
// Use this for initialization void Start() { if (gameObject.GetComponentInChildren <CUIHandle>() != null) { CUIHandle.AddClick(gameObject.GetComponentInChildren <CUIHandle>(), OnClicViewDetails); } CUIHandle.AddClick(btnPlus, OnClickButtonPlus); }
void OnDestroy() { CUIHandle.RemoveClick(btnClose, OnClickButtonClose); webView.OnReceivedMessage -= OnReceivedMessage; webView.OnLoadComplete -= OnLoadComplete; webView.OnWebViewShouldClose -= OnWebViewShouldClose; webView.OnEvalJavaScriptFinished -= OnEvalJavaScriptFinished; }
void OnDestroy() { CUIHandle.RemoveClick(btEditGeneral, OnClickBeginEditGeneral); CUIHandle.RemoveClick(btEditSecurity, OnClickBeginEditSecurity); CUIHandle.RemoveClick(btSaveGeneral, OnClickSaveGeneral); CUIHandle.RemoveClick(btSaveSecurity, OnClickSaveSecurity); CUIHandle.RemoveClick(btChangePassword, OnClickChangePass); CUIHandle.RemoveClick(btChangeAvatar, OnClickChangeAvatar); }
void OnDestroy() { CUIHandle.RemoveClick(btnClose, OnClickButtonClose); webView.OnReceivedMessage -= OnReceivedMessage; webView.OnLoadComplete -= OnLoadComplete; webView.OnWebViewShouldClose -= OnWebViewShouldClose; webView.OnEvalJavaScriptFinished -= OnEvalJavaScriptFinished; GameManager.Server.EventUpdateUserInfo -= GetDataUserInfo; }
void Awake() { input = gameObject.transform.parent.GetComponent <UIInput>(); if (input == null) { input = gameObject.GetComponent <UIInput> (); } CUIHandle.AddClick(btClear, OnClickClear); }
void Awake() { if (btClear == null) { btClear = transform.GetComponentInChildren <CUIHandle>(); } CUIHandle.AddClick(btClear, OnClickClear); }
void OnDestroy() { CUIHandle.RemoveClick(buttonChat, OnClickButtonChat); if (!GameManager.IsExist) { return; } GameManager.Server.EventPublicMessage -= OnPublicMessage; }
void Awake() { _instance = this; CUIHandle.AddClick(btnRegister, JoinTournament); CUIHandle.AddClick(btnShow, JoinTournament); GameManager.Server.EventPluginMessageOnProcess += OnProcessPluginMessage; GameManager.Server.EventJoinRoom += OnAfterJoinRoom; RegisterHeaderMenu(); }
void OnDestroy() { GameManager.Instance.displayTournamentMenu = false; HeaderMenu.Instance.ReDraw(); CUIHandle.RemoveClick(btnRegister, OnRegister); GameManager.Server.EventPluginMessageOnProcess -= OnProcessPluginMessage; GameManager.Server.EventJoinRoom -= OnAfterJoinRoom; CUIHandle.RemoveClick(btnBack, OnClickBack); }
void Awake() { CUIHandle.AddClick(btEditGeneral, OnClickBeginEditGeneral); CUIHandle.AddClick(btEditSecurity, OnClickBeginEditSecurity); CUIHandle.AddClick(btSaveGeneral, OnClickSaveGeneral); CUIHandle.AddClick(btSaveSecurity, OnClickSaveSecurity); CUIHandle.AddClick(btChangePassword, OnClickChangePass); CUIHandle.AddClick(btChangeAvatar, OnClickChangeAvatar); }
void OnDestroy() { CUIHandle.RemoveClick(btnOk, OnClickFindFriend); if (!GameManager.IsExist) { return; } GameManager.Server.EventFriendChanged -= onFriendChanged; }
void Awake() { gameObject.AddComponent <CUIPopup>().buttonClose = OnClickButtonClose; CUIHandle.AddClick(btnClose, OnClickButtonClose); GameModelChan.game.Listener.EventLogGameChange += OnLogGame; GameModelChan.game.Listener.EventPlayerListChanged += OnPlayerListChanged; GameModelChan.game.Listener.EventSwapSlot += OnSwapSlot; GameModelChan.game.Listener.EventPlayerWaitingChangePriority += OnLoadPlayerWaiting; controller.tabbarButtons [1].gameObject.SetActive(GameModelChan.YourController != null && GameModelChan.YourController.isMaster); controller.tabbarButtons [2].gameObject.SetActive(GameModelChan.YourController != null && GameModelChan.YourController.isMaster); }
void OnDestroy() { CUIHandle.RemoveClick(btnClose, OnClickButtonClose); if (!GameManager.IsExist) { return; } GameModelChan.game.Listener.EventPlayerWaitingChangePriority -= OnLoadPlayerWaiting; GameModelChan.game.Listener.EventLogGameChange -= OnLogGame; GameModelChan.game.Listener.EventPlayerListChanged -= OnPlayerListChanged; GameModelChan.game.Listener.EventSwapSlot -= OnSwapSlot; }
public static void Remove(EUserOnlineRow row) { if (List.Contains(row)) { if (row.gameObject != null) { CUIHandle.RemoveClick(row.gameObject.GetComponent <CUIHandle>(), row.gameObject.GetComponent <EUserOnlineRow>().OnClickUserOnline); GameObject.Destroy(row.gameObject); } List.Remove(row); } }
void Start() { gameObject.AddComponent <CUIPopup>().buttonClose = OnClickButtonClose; CUIHandle.AddClick(btnClose, OnClickButtonClose); webView.OnReceivedMessage += OnReceivedMessage; webView.OnLoadComplete += OnLoadComplete; webView.OnWebViewShouldClose += OnWebViewShouldClose; webView.OnEvalJavaScriptFinished += OnEvalJavaScriptFinished; GameManager.Server.EventUpdateUserInfo += GetDataUserInfo; SetWebView(); }