private void OnDestroy()
 {
     bol_Table_Info = null;
     BolNetworkReceiving.SelfDestruction();
     //StopControlMatrix();
     //StopCurrentMatrix();
     instance   = null;
     screenChat = null;
 }
    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);
    }
Exemple #3
0
 void OnDestroy()
 {
     BolNetworkReceiving.SelfDestruction();
     ins = null;
 }