mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
More internal access modifier removals (#671)
This commit is contained in:
parent
3523e52181
commit
4897edd76a
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user