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> (); }
void Awake() { GUI = GameObject.FindGameObjectWithTag("GUI"); gameInstructions = GUI.GetComponent <GameInstructions> (); displayEditor = GUI.GetComponent <DisplayEditor> (); targetingNetwork = this.GetComponent <TargetingNetwork> (); armyManagement = this.GetComponent <ArmyManagement>(); countryManagement = this.GetComponent <CountryManagement> (); takeControl = this.GetComponent <TakeControl> (); diceRoll = this.GetComponent <DiceRoll>(); phases = this.GetComponent <Phases> (); teamChecker = this.GetComponent <TeamChecker> (); targetCountry = this.GetComponent <TargetCountry> (); audioFadeOut = this.GetComponent <AudioFadeOut> (); }