Esempio n. 1
0
 void OnTriggerEnter(Collider c)
 {
     if (c.gameObject.tag == "Player")
     {
         Debug.Log("Player timeline trigger");
         timeline.Play();
         playerController = c.gameObject.GetComponent <ThirdPersonController>();
         playerController.Disable(); // Disable player movements
     }
 }