You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Tooltip("The distance from the GameObject's spawn position at which will trigger a respawn")]
15
-
publicfloatDistanceThreshold=20.0f;
15
+
[SerializeField,Tooltip("The distance from the GameObject's spawn position at which will trigger a respawn."),FormerlySerializedAs("DistanceThreshold")]
16
+
privatefloatdistanceThreshold=20.0f;
16
17
17
-
privateVector3RespawnPoint;
18
-
privateQuaternionRespawnOrientation;
18
+
/// <summary>
19
+
/// The distance from the GameObject's spawn position at which will trigger a respawn.
20
+
/// </summary>
21
+
/// <remarks>Also updates a local cache of this value squared for performant distance checking.</remarks>
0 commit comments