void Awake() { scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); attack = scriptHolder.GetComponent <Attack> (); boardSetUp = this.GetComponent <BoardSetUp> (); territoryBonus = this.GetComponent <TerritoryBonus> (); territoryRank = this.GetComponent <TerritoryRank> (); }
void Awake() { playerRank = this.GetComponent <PlayerRank> (); troopRank = this.GetComponent <TroopRank> (); territoryRank = this.GetComponent <TerritoryRank> (); soldierBonusRank = this.GetComponent <SoldierBonusRank> (); scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); phases = scriptHolder.GetComponent <Phases> (); }
private void Awake() { territories = GameObject.FindGameObjectWithTag("Territories"); territoryRank = territories.GetComponent <TerritoryRank>(); territoryCount = territories.GetComponent <TerritoryCount>(); scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); playerTurn = scriptHolder.GetComponent <PlayerTurn>(); buttonColour = this.GetComponent <ButtonColour>(); }
void Awake() { territoryRank = this.GetComponent <TerritoryRank> (); territoryCount = this.GetComponent <TerritoryCount> (); troopRank = this.GetComponent <TroopRank> (); troopCount = this.GetComponent <TroopCount> (); soldierBonusRank = this.GetComponent <SoldierBonusRank> (); soldierBonus = this.GetComponent <SoldierBonus> (); scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); teamChecker = scriptHolder.GetComponent <TeamChecker>(); playerTurn = scriptHolder.GetComponent <PlayerTurn>(); }