void SetPreviousGameInfo(string json) { GameResponseData responseData = JsonConvert.DeserializeObject <GameResponseData>(json); _previousGameData = responseData.game; _previousGameStatus = (OnlineGameStatus)Enum.Parse(typeof(OnlineGameStatus), _previousGameData.state.ToUpper(), true); }
void SetGameInfo(string json) { //Debug.Log("SetGameInfo"); GameResponseData responseData = JsonConvert.DeserializeObject <GameResponseData>(json); //Debug.Log("1"); _gameData = responseData.game; //Debug.Log(json); _gameStatus = (OnlineGameStatus)Enum.Parse(typeof(OnlineGameStatus), _gameData.state.ToUpper(), true); //Debug.Log("2"); }