This commit is contained in:
vis2k 2021-03-07 16:34:04 +08:00
parent 5c9962100e
commit 707c20c6d6

View File

@ -40,17 +40,21 @@ public static class ClientScene
/// This is a dictionary of the prefabs that are registered on the client with ClientScene.RegisterPrefab(). /// This is a dictionary of the prefabs that are registered on the client with ClientScene.RegisterPrefab().
/// <para>The key to the dictionary is the prefab asset Id.</para> /// <para>The key to the dictionary is the prefab asset Id.</para>
/// </summary> /// </summary>
public static readonly Dictionary<Guid, GameObject> prefabs = new Dictionary<Guid, GameObject>(); public static readonly Dictionary<Guid, GameObject> prefabs =
new Dictionary<Guid, GameObject>();
/// <summary> /// <summary>
/// This is dictionary of the disabled NetworkIdentity objects in the scene that could be spawned by messages from the server. /// This is dictionary of the disabled NetworkIdentity objects in the scene that could be spawned by messages from the server.
/// <para>The key to the dictionary is the NetworkIdentity sceneId.</para> /// <para>The key to the dictionary is the NetworkIdentity sceneId.</para>
/// </summary> /// </summary>
internal static readonly Dictionary<ulong, NetworkIdentity> spawnableObjects = new Dictionary<ulong, NetworkIdentity>(); internal static readonly Dictionary<ulong, NetworkIdentity> spawnableObjects =
new Dictionary<ulong, NetworkIdentity>();
// spawn handlers // spawn handlers
internal static readonly Dictionary<Guid, SpawnHandlerDelegate> spawnHandlers = new Dictionary<Guid, SpawnHandlerDelegate>(); internal static readonly Dictionary<Guid, SpawnHandlerDelegate> spawnHandlers =
internal static readonly Dictionary<Guid, UnSpawnDelegate> unspawnHandlers = new Dictionary<Guid, UnSpawnDelegate>(); new Dictionary<Guid, SpawnHandlerDelegate>();
internal static readonly Dictionary<Guid, UnSpawnDelegate> unspawnHandlers =
new Dictionary<Guid, UnSpawnDelegate>();
internal static void Shutdown() internal static void Shutdown()
{ {