void Awake() { // Setting up references. player = GameObject.FindGameObjectWithTag(Tags.player); sceneFadeInOut = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent <SceneFadeInOut>(); liftDoorsTracking = GetComponent <LiftDoorsTracking>(); }
void Awake() { player = GameObject.FindGameObjectWithTag("Player"); PlayerAnim = player.GetComponent <Animator> (); sceneFadeInOut = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent <SceneFadeInOut> (); liftDoorsTracking = GetComponent <LiftDoorsTracking> (); }
void Awake() { // Setting up references. player = GameObject.FindGameObjectWithTag(Tags.player); sceneFadeInOut = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent<SceneFadeInOut>(); liftDoorsTracking = GetComponent<LiftDoorsTracking>(); }
void Awake() { player = GameObject.FindGameObjectWithTag(Tags.player); playerAnim = player.GetComponent <Animator>(); hash = GameObject.FindGameObjectWithTag(Tags.gameController).GetComponent <HashIDs>(); camMovement = Camera.main.gameObject.GetComponent <CameraMovement>(); sceneFadeInOut = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent <SceneFadeInOut>(); liftDoorsTracking = GetComponent <LiftDoorsTracking>(); }
void Awake() { player = GameObject.FindGameObjectWithTag(Tags.player); playerAnim = player.GetComponent<Animator>(); hash = GameObject.FindGameObjectWithTag(Tags.gameController).GetComponent<HashIds>(); camMovement = Camera.main.gameObject.GetComponent<CameraMovement>(); fade = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent<ScreenFadeInOut>(); liftDoorsTracking = GetComponent<LiftDoorsTracking>(); }
private float timer; // Timer to determine when the lift moves and when the level ends. #endregion Fields #region Methods void Awake() { // Setting up references. player = GameObject.FindGameObjectWithTag(Tags.player); playerAnim = player.GetComponent<Animator>(); hash = GameObject.FindGameObjectWithTag(Tags.gameController).GetComponent<HashIDs>(); camMovement = Camera.main.gameObject.GetComponent<CameraMovement>(); sceneFadeInOut = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent<SceneFadeInOut>(); liftDoorsTracking = GetComponent<LiftDoorsTracking>(); }
void Awake() { player = GameObject.FindGameObjectWithTag (Tags.player); playerAnim = player.GetComponent<Animator> (); hash = GameObject.FindGameObjectWithTag (Tags.gameController).GetComponent<HashIDs> (); camMovement = Camera.main.gameObject.GetComponent<CameraMovement> (); sceneFadeInOut = GameObject.FindGameObjectWithTag (Tags.canvas).GetComponent<SceneFadeInOut> (); liftDoorsTracking = GetComponent<LiftDoorsTracking> (); audio = GetComponent<AudioSource> (); }