File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 15
15
*
16
16
*/
17
17
18
+ //#define SPLINE_INTERPOLATOR
18
19
19
20
using UnityEngine ;
20
21
using IBM . Watson . DeveloperCloud . Logging ;
@@ -51,8 +52,10 @@ public class CameraTarget : MonoBehaviour
51
52
private float m_RatioAtCameraPath = 0.0f ;
52
53
[ SerializeField ]
53
54
private Vector3 m_DistanceFromCamera = Vector3 . zero ;
55
+ #if SPLINE_INTERPOLATOR
54
56
[ SerializeField ]
55
57
private SplineInterpolator m_SplineInterpolator ;
58
+ #endif
56
59
private Transform [ ] m_PathTransforms ;
57
60
58
61
[ SerializeField ]
@@ -174,6 +177,7 @@ public Vector3 TargetPosition
174
177
{
175
178
get
176
179
{
180
+ #if SPLINE_INTERPOLATOR
177
181
if ( m_CameraPathRootObject != null )
178
182
{
179
183
if ( m_PathTransforms == null )
@@ -208,7 +212,9 @@ public Vector3 TargetPosition
208
212
}
209
213
210
214
}
211
- else if ( m_UseCustomPosition )
215
+ else
216
+ #endif
217
+ if ( m_UseCustomPosition )
212
218
{
213
219
return m_CustomPosition ;
214
220
}
@@ -410,6 +416,8 @@ public void SetTargetPositionWithOffset(Vector3 offsetPosition)
410
416
411
417
#endregion
412
418
419
+ #if SPLINE_INTERPOLATOR
420
+
413
421
void OnDrawGizmos ( )
414
422
{
415
423
if ( m_CameraPathRootObject != null )
@@ -445,6 +453,8 @@ void OnDrawGizmos()
445
453
}
446
454
}
447
455
}
456
+
457
+ #endif
448
458
}
449
459
450
460
}
You can’t perform that action at this time.
0 commit comments