void Start() { mState = MachineState.Idle; ShowData(); GenerateSymbols(); mMatchmaking = MatchMaking.GetInstance(); mMatchmaking.LoadPlayerjson(mPlayersVillageList); mPlayerVillageView.SetPlayer(mMatchmaking.GetPlayerForMatch()); PlayerDataController.Controller.playerVillage = mPlayerVillageView.playerVillage; }
void OnReelIdle() { mState = mBets.mState = MachineState.Idle; SpinStopButton(); mMatchmaking.mSpins++; if (mMatchmaking.mSpins >= mMatchmaking.mPlayerFrequency) { mPlayerVillageView.SetPlayer(mMatchmaking.GetPlayerForMatch()); } PlayerDataController.Controller.playerVillage = mPlayerVillageView.playerVillage; mStopReels = 0; Debug.Log(mState); }