diff --git a/Config.json.enc b/Config.json.enc index 35ff60fe0..ca6e68dea 100644 Binary files a/Config.json.enc and b/Config.json.enc differ diff --git a/Scripts/Camera/CameraTarget.cs b/Scripts/Camera/CameraTarget.cs index 70ba62c4c..3f4674101 100644 --- a/Scripts/Camera/CameraTarget.cs +++ b/Scripts/Camera/CameraTarget.cs @@ -15,6 +15,7 @@ * */ +//#define SPLINE_INTERPOLATOR using UnityEngine; using IBM.Watson.DeveloperCloud.Logging; @@ -51,8 +52,10 @@ public class CameraTarget : MonoBehaviour private float m_RatioAtCameraPath = 0.0f; [SerializeField] private Vector3 m_DistanceFromCamera = Vector3.zero; + #if SPLINE_INTERPOLATOR [SerializeField] private SplineInterpolator m_SplineInterpolator; + #endif private Transform[] m_PathTransforms; [SerializeField] @@ -174,6 +177,7 @@ public Vector3 TargetPosition { get { + #if SPLINE_INTERPOLATOR if (m_CameraPathRootObject != null) { if (m_PathTransforms == null) @@ -208,7 +212,9 @@ public Vector3 TargetPosition } } - else if (m_UseCustomPosition) + else + #endif + if (m_UseCustomPosition) { return m_CustomPosition; } @@ -410,6 +416,8 @@ public void SetTargetPositionWithOffset(Vector3 offsetPosition) #endregion + #if SPLINE_INTERPOLATOR + void OnDrawGizmos() { if (m_CameraPathRootObject != null) @@ -445,6 +453,8 @@ void OnDrawGizmos() } } } + + #endif } }