void OnTriggerExit(Collider other) { if (other.tag == "Player") { cameraRotation.RotateTo(CameraRotationDirection.ToVector(exitDirection)); } }
void OnTriggerStay(Collider other) { if (other.tag == "Player") { cameraRotation.RotateTo(CameraRotationDirection.ToVector(targetDirection)); } }