コード例 #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>();
 }
コード例 #2
0
	private bool playerDead;							// A bool to show if the player is dead or not.
	
	
	void Awake ()
	{
		// Setting up the references.
		anim = GetComponent<Animator>();
		playerMovement = GetComponent<DonePlayerMovement>();
		hash = GameObject.FindGameObjectWithTag(DoneTags.gameController).GetComponent<DoneHashIDs>();
		sceneFadeInOut = GameObject.FindGameObjectWithTag(DoneTags.fader).GetComponent<DoneSceneFadeInOut>();
		lastPlayerSighting = GameObject.FindGameObjectWithTag(DoneTags.gameController).GetComponent<DoneLastPlayerSighting>();
	}
コード例 #3
0
    private bool playerDead;                                    // A bool to show if the player is dead or not.


    void Awake()
    {
        // Setting up the references.
        anim               = GetComponent <Animator>();
        playerMovement     = GetComponent <DonePlayerMovement>();
        hash               = GameObject.FindGameObjectWithTag(DoneTags.gameController).GetComponent <DoneHashIDs>();
        sceneFadeInOut     = GameObject.FindGameObjectWithTag(DoneTags.fader).GetComponent <DoneSceneFadeInOut>();
        lastPlayerSighting = GameObject.FindGameObjectWithTag(DoneTags.gameController).GetComponent <DoneLastPlayerSighting>();
    }