void Start() { if (GameManager.PlayGoldOrChip != GOLD && GameManager.PlayGoldOrChip != CHIP) { GameManager.PlayGoldOrChip = GOLD; } GameManager.Server.DoRequestCommand(Fields.REQUEST.REQUEST_FULL); if (GameManager.Setting.IsFirstLogin) { GameManager.Setting.IsFirstLogin = false; NotificationView.ShowConfirm( Fields.MESSAGE.FIRST_LOGIN_NOTE, Fields.MESSAGE.FIRST_LOGIN_MESSAGE, delegate() { StoreGame.SaveInt(StoreGame.EType.CHANGE_INFORMATION, 1); ProfileView.Instance.CheckWhenStart(); } , null, "CẬP NHẬT", "ĐỂ SAU" ); } GetDataUserInfo(); SetIcon(); HeaderMenu.Instance.OnClickButtonBackCallBack = delegate() { GameManager.Server.DoJoinRoom(GameManager.Instance.hallRoom.zoneId, GameManager.Instance.hallRoom.roomId); }; }
void Start() { GameManager.Server.DoRequestCommand(Fields.REQUEST.REQUEST_FULL); if (GameManager.Setting.IsFirstLogin) { GameManager.Setting.IsFirstLogin = false; NotificationView.ShowConfirm( Fields.MESSAGE.FIRST_LOGIN_NOTE, Fields.MESSAGE.FIRST_LOGIN_MESSAGE, delegate() { StoreGame.SaveInt(StoreGame.EType.CHANGE_INFORMATION, 1); ProfileView.Instance.CheckWhenStart(); } , null, "CẬP NHẬT", "ĐỂ SAU" ); } listButton[0].GetComponentInChildren <NumberUserInChannel>().SetValue(2); SetIcon(); HeaderMenu.Instance.OnClickButtonBackCallBack = delegate() { GameManager.Server.DoJoinRoom(GameManager.Instance.hallRoom.zoneId, GameManager.Instance.hallRoom.roomId); }; }
public void SetVolumeEffect(bool _isMute) { sourceEffect.mute = _isMute; StoreGame.SaveInt(StoreGame.EType.SOUND_EFFECT, _isMute ? (int)StoreGame.EToggle.OFF : (int)StoreGame.EToggle.ON); }
public void SetVolumeBackground(bool _isMute) { sourceBackground.mute = _isMute; StoreGame.SaveInt(StoreGame.EType.SOUND_BACKGROUND, _isMute ? (int)StoreGame.EToggle.OFF : (int)StoreGame.EToggle.ON); }
void OnActivateLockScreen(bool _active) { GameManager.Setting.AllowLockScreen = _active; StoreGame.SaveInt(StoreGame.EType.LOCK_SCREEN, _active ? (int)StoreGame.EToggle.ON : (int)StoreGame.EToggle.OFF); }