private void OnDestroy() { bol_Table_Info = null; BolNetworkReceiving.SelfDestruction(); //StopControlMatrix(); //StopCurrentMatrix(); instance = null; screenChat = null; }
void RegisterAction() { #if TEST Debug.Log("register action update viewer and get table info"); #endif bol_Table_Info = new BOL_Table_Info(); NetworkGlobal.instance.SetProcessRealTime(CMD_REALTIME.S_GAMEPLAY_GET_TABLE_INFO, (_mess) => { bol_Table_Info.SetDataTableInfo(_mess); BolNetworkReceiving.instance.SetupReceive(); }); }
public void OnButtonOutRoom() { if (BOL_Manager.instance.CanPlayMusicAndSfx()) { MyAudioManager.instance.PlaySfx(BOL_Manager.instance.myAudioInfo.sfx_Press); } CoreGameManager.instance.SetUpOutRoomAndBackToChooseTableScreen(); bol_Table_Info = null; BolNetworkReceiving.SelfDestruction(); instance = null; //if (objectBattle == null) { //PopupManager.Instance.CreatePopupDialog(MyLocalize.GetString(MyLocalize.kWarning) //, MyLocalize.GetString("System/AskForOutRoom") //, string.Empty //, MyLocalize.GetString(MyLocalize.kYes) //, MyLocalize.GetString(MyLocalize.kNo) //, () => { // CoreGameManager.instance.SetUpOutRoomAndBackToChooseTableScreen(); // bol_Table_Info = null; // BolNetworkReceiving.SelfDestruction(); // instance = null; //}, null); }
public static void SelfDestruction() { ins = null; }