void Awake() { territories = GameObject.FindGameObjectWithTag("Territories"); soldierBonus = territories.GetComponent <SoldierBonus> (); GUI = GameObject.FindGameObjectWithTag("GUI"); receiveBonus = GUI.GetComponent <ReceiveBonus> (); buttonColour = GUI.GetComponent <ButtonColour> (); phases = this.GetComponent <Phases> (); playerTurn = this.GetComponent <PlayerTurn> (); }
void Awake() { GUI = GameObject.FindGameObjectWithTag("GUI"); receiveBonus = GUI.GetComponent <ReceiveBonus> (); gameInstructions = GUI.GetComponent <GameInstructions> (); buttonColour = GUI.GetComponent <ButtonColour> (); openingDeployment = GUI.GetComponent <OpeningDeployment> (); endGame = GUI.GetComponent <EndGame>(); displayEditor = GUI.GetComponent <DisplayEditor>(); territories = GameObject.FindGameObjectWithTag("Territories"); territoryCount = territories.GetComponent <TerritoryCount> (); playerTurn = this.GetComponent <PlayerTurn> (); deploySoldiers = this.GetComponent <DeploySoldiers> (); armyMovement = this.GetComponent <ArmyMovement> (); }
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> (); }