Skip to content

Commit 29e9ce9

Browse files
committed
merge in develop, encrypt credentials
2 parents 3cd9afa + 6b06bef commit 29e9ce9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Config.json.enc

0 Bytes
Binary file not shown.

Scripts/Camera/CameraTarget.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*
1616
*/
1717

18+
//#define SPLINE_INTERPOLATOR
1819

1920
using UnityEngine;
2021
using IBM.Watson.DeveloperCloud.Logging;
@@ -51,8 +52,10 @@ public class CameraTarget : MonoBehaviour
5152
private float m_RatioAtCameraPath = 0.0f;
5253
[SerializeField]
5354
private Vector3 m_DistanceFromCamera = Vector3.zero;
55+
#if SPLINE_INTERPOLATOR
5456
[SerializeField]
5557
private SplineInterpolator m_SplineInterpolator;
58+
#endif
5659
private Transform[] m_PathTransforms;
5760

5861
[SerializeField]
@@ -174,6 +177,7 @@ public Vector3 TargetPosition
174177
{
175178
get
176179
{
180+
#if SPLINE_INTERPOLATOR
177181
if (m_CameraPathRootObject != null)
178182
{
179183
if (m_PathTransforms == null)
@@ -208,7 +212,9 @@ public Vector3 TargetPosition
208212
}
209213

210214
}
211-
else if (m_UseCustomPosition)
215+
else
216+
#endif
217+
if (m_UseCustomPosition)
212218
{
213219
return m_CustomPosition;
214220
}
@@ -410,6 +416,8 @@ public void SetTargetPositionWithOffset(Vector3 offsetPosition)
410416

411417
#endregion
412418

419+
#if SPLINE_INTERPOLATOR
420+
413421
void OnDrawGizmos()
414422
{
415423
if (m_CameraPathRootObject != null)
@@ -445,6 +453,8 @@ void OnDrawGizmos()
445453
}
446454
}
447455
}
456+
457+
#endif
448458
}
449459

450460
}

0 commit comments

Comments
 (0)