Esempio n. 1
0
 // Use this for initialization
 void Awake()
 {
     MainCamera     = GameObject.FindGameObjectWithTag(DoneTags.mainCamera);
     player         = GameObject.FindGameObjectWithTag(DoneTags.player);
     cameraMovement = MainCamera.GetComponent <DoneCameraMovement>();
     playerMovement = player.GetComponent <DonePlayerMovement>();
 }
    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>();
	}