public void SwitchCameraMode(SceneManager.CameraMode camMode) { if (camMode == SceneManager.CameraMode.ThirdPersonLocked) { m_isLocked = true; this.camera.transform.LookAt(target); //Confusing, but x refers to the movement of the mouse relative to the screen, and that generally refers to the y rotation of the character targetLastRot = m_curCharacterTarget.transform.rotation.eulerAngles.y; ForceOrientation(); } else { m_isLocked = false; } }
public void Init(SceneManager.CameraMode camMode) { SwitchCameraMode(camMode); Start(); }