Skip to content

Commit 13d9a03

Browse files
update & style
Minor adjustment to the range for delays allow it to be zero. Fixing spelling issues.
1 parent 1341aa0 commit 13d9a03

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

com.unity.netcode.gameobjects/Runtime/Components/Helpers/AttachableBehaviour.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ private void UpdateAttachedState()
213213
// Notify of the changed attached state
214214
UpdateAttachState(m_AttachState, m_AttachableNode);
215215

216-
// When detatching, we want to make our final action
217-
// the invocation of the AttachableNode's Detatch method.
216+
// When detaching, we want to make our final action
217+
// the invocation of the AttachableNode's Detach method.
218218
if (!shouldParent && m_AttachableNode)
219219
{
220220
m_AttachableNode.Detach(this);
@@ -227,7 +227,7 @@ private void UpdateAttachedState()
227227
/// when the <see cref="AttachState"/> has changed.
228228
/// </summary>
229229
/// <param name="attachState">The new <see cref="AttachState"/>.</param>
230-
/// <param name="attachableNode">The <see cref="AttachableNode"/> being attached to or from. Will be null when completely detatched.</param>
230+
/// <param name="attachableNode">The <see cref="AttachableNode"/> being attached to or from. Will be null when completely detached.</param>
231231
protected virtual void OnAttachStateChanged(AttachState attachState, AttachableNode attachableNode)
232232
{
233233

com.unity.netcode.gameobjects/Runtime/Components/Helpers/ComponentController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public class ComponentControllerEntry
2323
/// <summary>
2424
/// The amount of time to delay enabling this component when the <see cref="ComponentController"/> has just transitioned from a disabled to enabled state.
2525
/// </summary>
26-
[Range(0.001f, 2.0f)]
26+
[Range(0.0f, 2.0f)]
2727
public float EnableDelay;
2828

2929
/// <summary>
3030
/// The amount of time to delay disabling this component when the <see cref="ComponentController"/> has just transitioned from an enabled to disabled state.
3131
/// </summary>
32-
[Range(0.001f, 2.0f)]
32+
[Range(0f, 2.0f)]
3333
public float DisableDelay;
3434

3535
/// <summary>

0 commit comments

Comments
 (0)