Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other) //snaps to rooms, would need some adjustments if I put anything else in the scene other than rooms and the player
 {
     StopAllCoroutines();                    //make sure the coroutine doesn't interfere with itself whenever I start it
     CameraScript.PlayerFocus = !CameraScript.PlayerFocus;
     StartCoroutine(CameraScript.CameraSnap(other.transform.position));
     StartCoroutine(CameraScript.camZoom(CameraScript.camSizeRoom));
 }