Skip to content

Commit 4148bfe

Browse files
style - standards
Simplified the nameof AttachableBehaviour.Detach to just Detach.
1 parent 1f81ebd commit 4148bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public void Detach()
361361
// this could potentially occur if inoked more than once for the same instance in the same frame.
362362
if (m_AttachableNode && m_AttachState != AttachState.Detaching)
363363
{
364-
NetworkLog.LogError($"[{name}][Detach] Invalid state detected! {name} is still referencing {nameof(AttachableNode)} {m_AttachableNode.name}! Could {nameof(AttachableBehaviour.Detach)} be getting invoked more than once for the same instance?");
364+
NetworkLog.LogError($"[{name}][Detach] Invalid state detected! {name} is still referencing {nameof(AttachableNode)} {m_AttachableNode.name}! Could {nameof(Detach)} be getting invoked more than once for the same instance?");
365365
}
366366
return;
367367
}

0 commit comments

Comments
 (0)