mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
renaming player to ownerPlayer (#1859)
This commit is contained in:
parent
2c40c71557
commit
eed1ddc090
@ -1130,10 +1130,10 @@ static bool VerifyCanSpawn(GameObject obj)
|
|||||||
/// <para>This is the same as calling NetworkIdentity.AssignClientAuthority on the spawned object.</para>
|
/// <para>This is the same as calling NetworkIdentity.AssignClientAuthority on the spawned object.</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">The object to spawn.</param>
|
/// <param name="obj">The object to spawn.</param>
|
||||||
/// <param name="player">The player object to set Client Authority to.</param>
|
/// <param name="ownerPlayer">The player object to set Client Authority to.</param>
|
||||||
public static void Spawn(GameObject obj, GameObject player)
|
public static void Spawn(GameObject obj, GameObject ownerPlayer)
|
||||||
{
|
{
|
||||||
NetworkIdentity identity = player.GetComponent<NetworkIdentity>();
|
NetworkIdentity identity = ownerPlayer.GetComponent<NetworkIdentity>();
|
||||||
if (identity == null)
|
if (identity == null)
|
||||||
{
|
{
|
||||||
Debug.LogError("Player object has no NetworkIdentity");
|
Debug.LogError("Player object has no NetworkIdentity");
|
||||||
|
Loading…
Reference in New Issue
Block a user