示例#1
0
 void OnTriggerExit(Collider other)
 {
     if (other.tag == "Player")
     {
         cameraRotation.RotateTo(CameraRotationDirection.ToVector(exitDirection));
     }
 }
示例#2
0
 void OnTriggerStay(Collider other)
 {
     if (other.tag == "Player")
     {
         cameraRotation.RotateTo(CameraRotationDirection.ToVector(targetDirection));
     }
 }