private float timer; // Timer to determine when the lift moves and when the level ends. void Awake() { // Setting up references. player = GameObject.FindGameObjectWithTag(DoneTags.player); playerAnim = player.GetComponent <Animator>(); hash = GameObject.FindGameObjectWithTag(DoneTags.gameController).GetComponent <DoneHashIDs>(); camMovement = Camera.main.gameObject.GetComponent <DoneCameraMovement>(); sceneFadeInOut = GameObject.FindGameObjectWithTag(DoneTags.fader).GetComponent <DoneSceneFadeInOut>(); liftDoorsTracking = GetComponent <DoneLiftDoorsTracking>(); }
private float timer; // Timer to determine when the lift moves and when the level ends. void Awake () { // Setting up references. player = GameObject.FindGameObjectWithTag(DoneTags.player); playerAnim = player.GetComponent<Animator>(); hash = GameObject.FindGameObjectWithTag(DoneTags.gameController).GetComponent<DoneHashIDs>(); camMovement = Camera.main.gameObject.GetComponent<DoneCameraMovement>(); sceneFadeInOut = GameObject.FindGameObjectWithTag(DoneTags.fader).GetComponent<DoneSceneFadeInOut>(); liftDoorsTracking = GetComponent<DoneLiftDoorsTracking>(); }