Esempio n. 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         script = other.gameObject.GetComponent <UpdatedCharacterControllerScript>();
         mainCamera.GetComponent <cameraAudioManager>().switchBackgroundMusic(OnEnterWater);
     }
 }
Esempio n. 2
0
 void Start()
 {
     anim   = gameObject.GetComponentInChildren <Animator>();
     script = gameObject.GetComponent <UpdatedCharacterControllerScript>();
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     characterScript = player.GetComponent <UpdatedCharacterControllerScript>();
 }