예제 #1
0
    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();
    }
예제 #2
0
 public void Activate()
 {
     gameObject.SetActive(true);
     messageComponent.Activate();
 }