Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        GameObject manager = GameObject.Find("MovementManager");

        playerSelector = manager.GetComponent <PlayerSelector>();
        players        = playerSelector.GetPlayers();
    }
Esempio n. 2
0
    private void Start()
    {
        deadPlayers          = new List <GameObject>();
        gameOverText.enabled = false;

        GameObject manager = GameObject.Find("MovementManager");

        playerSelector = manager.GetComponent <PlayerSelector>();
        maxDeadPlayers = playerSelector.GetPlayers().Length;

        turnManager = GameObject.Find("GameRoundManager").GetComponent <TurnManager>();
    }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        gameOver = false;
        GameObject manager = GameObject.Find("MovementManager");

        playerSelector   = manager.GetComponent <PlayerSelector>();
        enemySelector    = manager.GetComponent <EnemySelector>();
        turnText.enabled = false;
        gameRound        = 0;
        enemies          = enemySelector.GetEnemies();
        players          = playerSelector.GetPlayers();

        //StartCoroutine("PlayerTurn");
    }