Пример #1
0
 void Awake()
 {
     m_lookAt = GetComponentInChildren <LookatTarget>();
     m_lookAt.SetTarget(Camera.main.transform);
 }
Пример #2
0
 public PlayerCameraHandler(CarView view, Camera cameraBehavior, LookatTarget lookatTarget)
 {
     cameraBehavior.Target = view;
     lookatTarget.Target   = view.CarTransform;
 }