Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Scripts/CharacterControllerLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void FixedUpdate()
capCollider.height = capsuleHeight + (animator.GetFloat("CapsuleCurve") * 0.5f);
if (gamecam.CamState != ThirdPersonCamera.CamStates.Free)
{
gamecam.ParentRig.Translate(Vector3.up * (transform.position.y - oldY));
gamecam.transform.Translate(Vector3.up * (transform.position.y - oldY));
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion Assets/Scripts/ThirdPersonCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
/// </summary>
using UnityEngine;
using System.Collections;
using UnityEditor;

#if UNITY_EDITOR
using UnityEditor;
#endif

/// <summary>
/// Struct to hold data for aligning camera
Expand Down Expand Up @@ -233,6 +235,7 @@ void Update ()

}

#if UNITY_EDITOR
/// <summary>
/// Debugging information should be put here.
/// </summary>
Expand All @@ -243,6 +246,7 @@ void OnDrawGizmos ()
DebugDraw.DrawDebugFrustum(viewFrustum);
}
}
#endif

void LateUpdate()
{
Expand Down