Exemplo n.º 1
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        else if (instance != this)
        {
            Destroy(gameObject);
        }

        players   = new List <PlayerActions>();
        positions = new List <PositionsMultiPlayer>();

        pieceSpawned = false;

        endGame         = false;
        onPieceSpawned += PieceSpawned;
    }
Exemplo n.º 2
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        else if (instance != this)
        {
            Destroy(gameObject);
        }

        difficulty = 3;
        positions  = new List <Position>();

        isMultiplayer = false;
        pieceSpawned  = false;
        waitAIPlay    = false;
        isPlayerTurn  = true;

        endGame         = false;
        onPieceSpawned += PieceSpawned;
    }