void Awake()
 {
     // Setting up references.
     player            = GameObject.FindGameObjectWithTag(Tags.player);
     sceneFadeInOut    = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent <SceneFadeInOut>();
     liftDoorsTracking = GetComponent <LiftDoorsTracking>();
 }
示例#2
0
 void Awake()
 {
     player            = GameObject.FindGameObjectWithTag("Player");
     PlayerAnim        = player.GetComponent <Animator> ();
     sceneFadeInOut    = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent <SceneFadeInOut> ();
     liftDoorsTracking = GetComponent <LiftDoorsTracking> ();
 }
示例#3
0
 void Awake()
 {
     // Setting up references.
     player = GameObject.FindGameObjectWithTag(Tags.player);
     sceneFadeInOut = GameObject.FindGameObjectWithTag(Tags.fader).GetComponent<SceneFadeInOut>();
     liftDoorsTracking = GetComponent<LiftDoorsTracking>();
 }
示例#4
0
 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>();
 }
示例#5
0
 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>();
 }
示例#6
0
    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>();
    }
示例#7
0
 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> ();
 }