Deprecate FindLocalObject. no need to have it in clientscene and networkserver when there is NetworkIdentity.spawned already in one place. (#295)

This commit is contained in:
vis2k 2019-01-15 21:43:55 +01:00 committed by GitHub
parent c02c852be5
commit 3fe93cbe44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -380,6 +380,7 @@ public static void DestroyAllClientObjects()
NetworkIdentity.spawned.Clear();
}
[Obsolete("Use NetworkIdentity.spawned[netId] instead.")]
public static GameObject FindLocalObject(uint netId)
{
NetworkIdentity identity;

View File

@ -1149,6 +1149,7 @@ internal static bool InvokeBytes(ULocalConnectionToServer conn, byte[] buffer)
return false;
}
[Obsolete("Use NetworkIdentity.spawned[netId] instead.")]
public static GameObject FindLocalObject(uint netId)
{
NetworkIdentity identity;