void Awake() { m_lookAt = GetComponentInChildren <LookatTarget>(); m_lookAt.SetTarget(Camera.main.transform); }
public PlayerCameraHandler(CarView view, Camera cameraBehavior, LookatTarget lookatTarget) { cameraBehavior.Target = view; lookatTarget.Target = view.CarTransform; }