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> (); }
// Use this for initialization void Start() { anim = GetComponent <Animator>(); audio = GetComponent <AudioSource>(); takeControl = GetComponent <TakeControl>(); quicktimeEvent = FindObjectOfType <QuicktimeEvent>(); quicktimeEvent.gameObject.SetActive(false); if (OnHealthChanged != null) { OnHealthChanged(Health); } animId_bHoldItem = Animator.StringToHash("bHoldItem"); animId_tGrabItem = Animator.StringToHash("tGrabItem"); animId_tThrowItem = Animator.StringToHash("tThrowItem"); }
// Use this for initialization void Start() { motherBehaviour = GetComponent <MotherBehaviour>(); takeControl = GetComponent <TakeControl>(); }