Beispiel #1
0
    void OnMouseDown()
    {
        if (manager.turn == 1)
        {
            manager.turn = 2;
            mainCamera.SetActive(false);
            secondaryCamera.SetActive(true);
            golds.addGoldToP2(3);
        }
        else if (manager.turn == 2)
        {
            manager.turn = 1;
            mainCamera.SetActive(true);
            secondaryCamera.SetActive(false);
            golds.addGoldToP1(3);
        }

        manager.totalTurn++;
        attack.ResetTiles();
        fill.Draw();
    }