From eed1ddc090bba3011aee3e3410f97f9efa5c7b53 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Fri, 8 May 2020 00:04:57 +0100 Subject: [PATCH] renaming player to ownerPlayer (#1859) --- Assets/Mirror/Runtime/NetworkServer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index 7b526b1de..808409f75 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -1130,10 +1130,10 @@ static bool VerifyCanSpawn(GameObject obj) /// This is the same as calling NetworkIdentity.AssignClientAuthority on the spawned object. /// /// The object to spawn. - /// The player object to set Client Authority to. - public static void Spawn(GameObject obj, GameObject player) + /// The player object to set Client Authority to. + public static void Spawn(GameObject obj, GameObject ownerPlayer) { - NetworkIdentity identity = player.GetComponent(); + NetworkIdentity identity = ownerPlayer.GetComponent(); if (identity == null) { Debug.LogError("Player object has no NetworkIdentity");