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() { scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); countryManagement = scriptHolder.GetComponent <CountryManagement> (); soldierManagement = scriptHolder.GetComponent <SoldierManagement> (); playerTurn = scriptHolder.GetComponent <PlayerTurn> (); phases = scriptHolder.GetComponent <Phases> (); territories = GameObject.FindGameObjectWithTag("Territories"); troopCount = territories.GetComponent <TroopCount> (); }
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>(); }
void Awake() { territories = GameObject.FindGameObjectWithTag("Territories"); troopCount = territories.GetComponent <TroopCount> (); GUI = GameObject.FindGameObjectWithTag("GUI"); gameInstructions = GUI.GetComponent <GameInstructions> (); buttonColour = GUI.GetComponent <ButtonColour> (); displayEditor = GUI.GetComponent <DisplayEditor> (); phases = this.GetComponent <Phases> (); countryManagement = this.GetComponent <CountryManagement> (); addSoldier = this.GetComponent <AddSoldier> (); linkedTerritories = this.GetComponent <LinkedTerritories> (); playerTurn = this.GetComponent <PlayerTurn> (); teamChecker = this.GetComponent <TeamChecker> (); }
// Use this for initialization void Awake() { territories = GameObject.FindGameObjectWithTag("Territories"); troopCount = territories.GetComponent <TroopCount> (); boardSetUp = territories.GetComponent <BoardSetUp> (); changeCategory = territories.GetComponent <ChangeCatagory> (); GUI = GameObject.FindGameObjectWithTag("GUI"); openingDeployment = GUI.GetComponent <OpeningDeployment> (); displayEditor = GUI.GetComponent <DisplayEditor> (); buttonColour = GUI.GetComponent <ButtonColour> (); countryManagement = this.GetComponent <CountryManagement> (); playerTurn = this.GetComponent <PlayerTurn> (); teamChecker = this.GetComponent <TeamChecker> (); phases = this.GetComponent <Phases> (); globalFunctions = this.GetComponent <GlobalFunctions> (); }
void Awake() { countryManagement = this.GetComponent <CountryManagement> (); phases = this.GetComponent <Phases> (); teamChecker = this.GetComponent <TeamChecker> (); playerTurn = this.GetComponent <PlayerTurn> (); deploySoldiers = this.GetComponent <DeploySoldiers> (); attack = this.GetComponent <Attack> (); audioFadeOut = this.GetComponent <AudioFadeOut> (); territories = GameObject.FindGameObjectWithTag("Territories"); troopCount = territories.GetComponent <TroopCount> (); GUI = GameObject.FindGameObjectWithTag("GUI"); displayEditor = GUI.GetComponent <DisplayEditor> (); receiveBonus = GUI.GetComponent <ReceiveBonus> (); buttonColour = GUI.GetComponent <ButtonColour> (); }
void Awake() { playerRank = this.GetComponent <PlayerRank> (); troopCount = this.GetComponent <TroopCount> (); boardSetUp = this.GetComponent <BoardSetUp> (); }