More internal access modifier removals (#671)

This commit is contained in:
rodolphito 2019-03-27 05:13:11 -07:00 committed by vis2k
parent 3523e52181
commit 4897edd76a

View File

@ -147,7 +147,7 @@ internal static void HandleClientDisconnect(NetworkConnection conn)
}
}
internal static bool ConsiderForSpawning(NetworkIdentity identity)
static bool ConsiderForSpawning(NetworkIdentity identity)
{
// not spawned yet, not hidden, etc.?
return !identity.gameObject.activeSelf &&
@ -166,7 +166,7 @@ public static void PrepareToSpawnSceneObjects()
.ToDictionary(identity => identity.sceneId, identity => identity);
}
internal static NetworkIdentity SpawnSceneObject(ulong sceneId)
static NetworkIdentity SpawnSceneObject(ulong sceneId)
{
if (spawnableObjects.TryGetValue(sceneId, out NetworkIdentity identity))
{
@ -178,7 +178,7 @@ internal static NetworkIdentity SpawnSceneObject(ulong sceneId)
}
// spawn handlers and prefabs
internal static bool GetPrefab(Guid assetId, out GameObject prefab)
static bool GetPrefab(Guid assetId, out GameObject prefab)
{
prefab = null;
return assetId != Guid.Empty &&
@ -289,7 +289,7 @@ public static void ClearSpawners()
unspawnHandlers.Clear();
}
internal static bool InvokeUnSpawnHandler(Guid assetId, GameObject obj)
static bool InvokeUnSpawnHandler(Guid assetId, GameObject obj)
{
if (unspawnHandlers.TryGetValue(assetId, out UnSpawnDelegate handler) && handler != null)
{