public void Init() { UILayerController.Instance.ShowLoading(); uiSelect.gameObject.SetActive(false); _assetBundleConfig = AssetbundlesManager.Instance.assetSetting.GetItemByGameId(_GAMEID); _soundSetting = AudioAssistant.Instance.GetSettingSound(_GAMEID, true); moneyType = (int)MoneyType.GOLD; _server = SignalRController.Instance.CreateServer <VuaBaoSignalRServer>((int)_GAMEID); _server.OnSRSEvent = OnSRSEvent; _server.OnSRSHubEvent = OnSRSHubEvent; _server.SRSInit(_URL, _HUBNAME); this.roomIdSelected = 1; lastResult = null; this.isAuto = false; btAuto.SetupAll(false); vkBtBets[roomIdSelected - 1].VKInteractable = false; this.accountInfo = Database.Instance.Account(); ChangeSound(); ChangeTypeMoney(); slotMachine.ClearUI(); List <int> id = new List <int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }; slotMachine.InitLineSelected(id); }
public void ClearUI() { // sieutoc btSieuToc.SetupAll(!isSieuToc); _machine.SetSpeed(isSieuToc ? 3 : 1); isAutoSpin = false; lastResult = null; StopAllCoroutines(); playLastResult = null; waitMachineFinish = null; gNotifyMoneyWin.SetActive(false); gNotifyMoneyWin.SetActive(false); gMenuContent.SetActive(false); vkTxtTotalWin.SetNumber(0); _machine.ClearUI(); if (gEvent.activeSelf) { vkEventNoticeRun.StopRunNotice(); gEvent.SetActive(false); } LoadAutoSpinState(); EnableToPlay(); }