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() { GUI = GameObject.FindGameObjectWithTag("GUI"); openingDeployment = GUI.GetComponent <OpeningDeployment> (); gameInstructions = GUI.GetComponent <GameInstructions> (); scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); soldierManagement = scriptHolder.GetComponent <SoldierManagement> (); allocateSoldiers = scriptHolder.GetComponent <AllocateSoldiers> (); phases = scriptHolder.GetComponent <Phases> (); playerTurn = scriptHolder.GetComponent <PlayerTurn> (); countryManagement = scriptHolder.GetComponent <CountryManagement> (); audioFadeOut = scriptHolder.GetComponent <AudioFadeOut> (); //testing targetContinent = scriptHolder.GetComponent <TargetContinent>(); gameStats = this.GetComponentInChildren <GameStats> (); inputBox = GameObject.Find("InputField"); }
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> (); }
void Awake() { teamChecker = this.GetComponent <TeamChecker> (); countryManagement = this.GetComponent <CountryManagement> (); targetingNetwork = this.GetComponent <TargetingNetwork> (); }