Skip to content

Commit 36b5edc

Browse files
style
correcting some typos in comments
1 parent f723e09 commit 36b5edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,11 +736,11 @@ public NetworkObject InstantiateAndSpawn(NetworkObject networkPrefab, ulong owne
736736
internal NetworkObject InstantiateAndSpawnNoParameterChecks(NetworkObject networkPrefab, ulong ownerClientId = NetworkManager.ServerClientId, bool destroyWithScene = false, bool isPlayerObject = false, bool forceOverride = false, Vector3 position = default, Quaternion rotation = default)
737737
{
738738
var networkObject = networkPrefab;
739-
// - Host and clients always instantiate the ovveride if one exists.
739+
// - Host and clients always instantiate the override if one exists.
740740
// - Server instantiates the original prefab unless:
741741
// -- forceOverride is set to true =or=
742742
// -- The prefab has a registered prefab handler, then we let user code determine what to spawn.
743-
// - Distributed authority mode always spawns the ovveride if one exists.
743+
// - Distributed authority mode always spawns the override if one exists.
744744
if (forceOverride || NetworkManager.IsClient || NetworkManager.DistributedAuthorityMode || NetworkManager.PrefabHandler.ContainsHandler(networkPrefab.GlobalObjectIdHash))
745745
{
746746
networkObject = GetNetworkObjectToSpawn(networkPrefab.GlobalObjectIdHash, ownerClientId, position, rotation);

0 commit comments

Comments
 (0)