Commit a562b86e authored by JOVANE Alberto's avatar JOVANE Alberto
Browse files

Fix Default and Follow view

parent 18a3ebea
......@@ -169,10 +169,7 @@ public class CamMvt : MonoBehaviour
// ------------------------------
// ROTATION - LOOKING AT AN AGENT
if (lookAt_Agent != null && activateLookAt)
{
transform.LookAt(lookAt_Agent.transform);
}
if (lockFirstPersonView)
{
if (camSelect.options[camSelect.value].text == "First_Person")
......@@ -188,6 +185,10 @@ public class CamMvt : MonoBehaviour
{
transform.eulerAngles = _default_rotation;
}
else if (lookAt_Agent != null && activateLookAt)
{
transform.LookAt(lookAt_Agent.transform);
}
#endregion
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment