// Use this for initialization void Start() { GameObject manager = GameObject.Find("MovementManager"); playerSelector = manager.GetComponent <PlayerSelector>(); players = playerSelector.GetPlayers(); }
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>(); }
// 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"); }