void Awake() { troopCount = this.GetComponent <TroopCount> (); territoryCount = this.GetComponent <TerritoryCount> (); territoryBonus = this.GetComponent <TerritoryBonus> (); continentBonus = this.GetComponent <ContinentBonus> (); soldierBonus = this.GetComponent <SoldierBonus> (); playerRank = this.GetComponent <PlayerRank> (); boardSetUp = this.GetComponent <BoardSetUp> (); }
void Awake() { countryManagement = this.GetComponent <CountryManagement> (); armyManagement = this.GetComponent <ArmyManagement> (); soldierTransfer = this.GetComponent <SoldierTransfer> (); territories = GameObject.FindGameObjectWithTag("Territories"); territoryCount = territories.GetComponent <TerritoryCount> (); continentBonus = territories.GetComponent <ContinentBonus> (); GUI = GameObject.FindGameObjectWithTag("GUI"); buttonColour = GUI.GetComponent <ButtonColour> (); gameInstructions = GUI.GetComponent <GameInstructions> (); }
// Set up array of player colours void Awake() { deploySoldiers = this.GetComponent <DeploySoldiers> (); phases = this.GetComponent <Phases> (); starterPhase = this.GetComponent <StarterPhase> (); setupPhase = this.GetComponent <SetupPhase> (); allocateSoldiers = this.GetComponent <AllocateSoldiers> (); territories = GameObject.FindGameObjectWithTag("Territories"); continentBonus = territories.GetComponent <ContinentBonus> (); changeCategory = territories.GetComponent <ChangeCatagory> (); boardSetUp = territories.GetComponent <BoardSetUp> (); GUI = GameObject.FindGameObjectWithTag("GUI"); lockoutPlayer = GUI.GetComponent <LockoutPlayer> (); displayTurn = GUI.GetComponent <DisplayTurn> (); gameInstructions = GUI.GetComponent <GameInstructions> (); }
void Awake() { territoryBonus = this.GetComponent <TerritoryBonus> (); continentBonus = this.GetComponent <ContinentBonus> (); soldierBonusRank = this.GetComponent <SoldierBonusRank> (); }