public void ChangeToFocusCamera(Transform target, float rate) { if (m_Focus == null) { m_Focus = new CamFocus(target, m_Rocker, rate); } }
/// <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>(); }