void Awake() { playerTurn = this.GetComponent <PlayerTurn> (); setupPhase = this.GetComponent <SetupPhase> (); allocateSoldiers = this.GetComponent <AllocateSoldiers> (); territories = GameObject.Find("Territories"); boardSetUp = territories.GetComponent <BoardSetUp> (); }
void Awake() { territories = GameObject.FindGameObjectWithTag("Territories"); playerRank = territories.GetComponent <PlayerRank> (); boardSetUp = territories.GetComponent <BoardSetUp> (); scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); allocateSoldiers = scriptHolder.GetComponent <AllocateSoldiers> (); teamChecker = scriptHolder.GetComponent <TeamChecker> (); }
void Awake() { scriptHolder = GameObject.FindGameObjectWithTag("ScriptHolder"); allocateSoldiers = scriptHolder.GetComponent <AllocateSoldiers> (); targetCountry = scriptHolder.GetComponent <TargetCountry> (); phases = scriptHolder.GetComponent <Phases> (); armyMovement = scriptHolder.GetComponent <ArmyMovement> (); playerTurn = scriptHolder.GetComponent <PlayerTurn> (); audioFadeOut = scriptHolder.GetComponent <AudioFadeOut> (); teamChecker = scriptHolder.GetComponent <TeamChecker> (); GUI = GameObject.FindGameObjectWithTag("GUI"); displayEditor = GUI.GetComponent <DisplayEditor> (); 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() { 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"); }