void Awake() { deploySolders = this.GetComponent <DeploySoldiers> (); armyManagement = this.GetComponent <ArmyManagement> (); globalFunctions = this.GetComponent <GlobalFunctions> (); phases = this.GetComponent <Phases> (); attackPhase = this.GetComponent <AttackPhase> (); }
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> (); }
// 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() { gameInstructions = this.GetComponent <GameInstructions> (); scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); phases = scriptHolder.GetComponent <Phases> (); teamChecker = scriptHolder.GetComponent <TeamChecker> (); countryManagement = scriptHolder.GetComponent <CountryManagement> (); attack = scriptHolder.GetComponent <Attack> (); deploySoldiers = scriptHolder.GetComponent <DeploySoldiers> (); plusColour = plusBtn.GetComponent <Image> (); minusColour = minusBtn.GetComponent <Image> (); attackColour = attackBtn.GetComponent <Image> (); battleColour = battleBtn.GetComponent <Image> (); turnColour = turnBtn.GetComponent <Image> (); moveColour = moveBtn.GetComponent <Image> (); categoryColour = catergoryBtn.GetComponent <Image> (); attackText = attackBtn.GetComponentInChildren <Text> (); moveText = moveBtn.GetComponentInChildren <Text> (); }