Exemple #1
0
 public void ResetCamTarget()
 {
     orbitCam.target = viewLocus.transform;
     viewLocus.transform.position = transform.position;
     viewLocus.transform.rotation = transform.rotation;
     viewLocus.transform.Translate(0, 0, orbitCam.distance, Space.Self);                                     // place target in front of us
     orbitCam.ResetView(transform.eulerAngles.y, transform.eulerAngles.x);
 }