Skip to content

Commit 5066e9c

Browse files
committed
Fix warning
1 parent 49f0a62 commit 5066e9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crest/Assets/Crest/Crest/Scripts/Interaction/SphereWaterInteraction.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ public partial class SphereWaterInteraction : MonoBehaviour, ILodDataInput
5959
[SerializeField]
6060
bool _warnOnSpeedClamp = false;
6161

62+
#if UNITY_EDITOR
6263
[Header("Debug")]
6364
[Tooltip("Draws debug lines at each substep position. Editor only."), SerializeField]
6465
bool _debugSubsteps = false;
66+
#endif
6567

6668
Vector3 _velocity;
6769
Vector3 _velocityClamped;
@@ -145,11 +147,11 @@ void LateUpdate()
145147

146148
_mpb.SetVector(sp_velocity, relativeVelocity);
147149
_mpb.SetFloat(sp_simDeltaTime, dt);
148-
150+
149151
// Enlarge radius slightly - this tends to help waves 'wrap' the sphere slightly better
150152
float radiusScale = 1.1f;
151153
_mpb.SetFloat(sp_radius, _radius * radiusScale);
152-
154+
153155
_mpb.SetFloat(sp_innerSphereOffset, _innerSphereOffset);
154156
_mpb.SetFloat(sp_innerSphereMultiplier, _innerSphereMultiplier);
155157
_mpb.SetFloat(sp_largeWaveMultiplier, _boostLargeWaves ? 2f : 1f);

0 commit comments

Comments
 (0)