/** * Applies the status to a view *@param camera - the camera *@param head - the player head */ public void Apply(GameObject camera, IRotationController.IHead head) { camera.transform.localPosition = m_Position; camera.transform.localEulerAngles = m_EulerAngles; head.m_MinAngle = m_MinAngle; head.m_MaxAngle = m_MaxAngle; }
/** * Initializes the view status *@param camera - the camera *@param head - the player head */ public void Init(GameObject camera, IRotationController.IHead head) { m_Position = camera.transform.localPosition; m_EulerAngles = camera.transform.localEulerAngles; m_MinAngle = head.m_MinAngle; m_MaxAngle = head.m_MaxAngle; }