Esempio n. 1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         vCamController.TransitionTo(cameraToActivate);
     }
 }
Esempio n. 2
0
 // Start is called before the first frame update
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player"))                    //if you enter the bounding box - camera trigger
     {
         vCamController.TransitionTo(cameraToActivate); //using the method from VirtualCameraController
     }
 }
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         vCamController.TransitionTo(cameraIn);
     }
 }