Skip to content

Commit 8fb61f1

Browse files
style
removing trailing spaces.
1 parent de3f9f5 commit 8fb61f1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

com.unity.netcode.gameobjects/Documentation~/basics/networkvariable.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ public class Door : NetworkBehaviour
269269
}
270270

271271
/// <summary>
272-
/// Override to apply specific checks (like a player having the right
273-
/// key to open the door) or make it a non-virtual class and add logic
272+
/// Override to apply specific checks (like a player having the right
273+
/// key to open the door) or make it a non-virtual class and add logic
274274
/// directly to this method.
275275
/// </summary>
276276
/// <param name="player">The player attempting to open the door.</param>
@@ -295,7 +295,7 @@ public class Door : NetworkBehaviour
295295
// Optional to log a warning about this.
296296
return;
297297
}
298-
298+
299299
if (IsHost)
300300
{
301301
ToggleState(NetworkManager.LocalClientId);
@@ -321,7 +321,7 @@ public class Door : NetworkBehaviour
321321
{
322322
if (CanPlayerToggleState(playerObject))
323323
{
324-
// Host toggles the state
324+
// Host toggles the state
325325
State.Value = !State.Value;
326326
UpdateFromState();
327327
}
@@ -336,9 +336,9 @@ public class Door : NetworkBehaviour
336336
// sever-side only script, this could mean many things depending upon whether
337337
// or not a client could interact with something and not have a player object.
338338
// If that is the case, then don't even bother checking for a player object.
339-
// If that is not the case, then there could be a timing issue between when
339+
// If that is not the case, then there could be a timing issue between when
340340
// something can be "interacted with" and when a player is about to be de-spawned.
341-
// For this example, we just log a warning as this example was built with
341+
// For this example, we just log a warning as this example was built with
342342
// the requirement that a client has a spawned player object that is used for
343343
// reference to determine if the client's player can toggle the state of the
344344
// door or not.
@@ -356,7 +356,7 @@ public class Door : NetworkBehaviour
356356
{
357357
ToggleState(rpcParams.Receive.SenderClientId);
358358
}
359-
359+
360360
/// <summary>
361361
/// Optional:
362362
/// Handling when a player cannot open a door.

0 commit comments

Comments
 (0)