Beispiel #1
0
 private void Awake()
 {
     controller     = GetComponent <CharacterController>();
     lampLight      = GetComponent <LampLight>();
     intangibleForm = GetComponent <IntangibleForm>();
     camera         = GetComponentInChildren <Camera>().transform;
 }
Beispiel #2
0
    /// <summary>
    /// Awake - first call
    /// </summary>
    private void Awake()
    {
        controller     = GetComponent <CharacterController>();
        lampLight      = GetComponent <LampLight>();
        intangibleForm = GetComponent <IntangibleForm>();
        camera         = GetComponentInChildren <Camera>().transform;

        audio = FindObjectOfType <AudioManager>();
    }