Exemple #1
0
 public void ChangeToFocusCamera(Transform target, float rate)
 {
     if (m_Focus == null)
     {
         m_Focus = new CamFocus(target, m_Rocker, rate);
     }
 }
Exemple #2
0
 /// <summary>
 /// Notifies the focus.
 /// </summary>
 /// <param name="touchPoint">Touch point.</param>
 public void NotifyFocus(Point touchPoint)
 {
     CamFocus?.Invoke(this, touchPoint);
 }
 void Start()
 {
     parentScript = transform.parent.parent.GetComponent <CamFocus>();
 }