private void SetupGame(object _data) { var gameData = JsonConvert.DeserializeObject <GameData>(_data.ToString()); GameId = gameData.GameId; IsMyTurn = IsItMyTurn(gameData.StartingPlayer); StartGame(gameData.Board); TurnInfo.Activate(); ChessPiecesInfo.Activate(); TurnInfoUpdate(); SetChessPieceInfo(); }
public void Activate() { gameObject.SetActive(true); messageComponent.Activate(); }