@@ -70,7 +70,7 @@ public static void RegisterSpawnHandler(ulong prefabHash, SpawnHandlerDelegate h
70
70
/// </summary>
71
71
/// <param name="prefabHash">The prefab hash to destroy</param>
72
72
/// <param name="handler">The delegate handler</param>
73
- public static void RegisterCustomDestroyHandler ( ulong prefabHash , DestroyHandlerDelegate handler )
73
+ public static void RegisterDestroyHandler ( ulong prefabHash , DestroyHandlerDelegate handler )
74
74
{
75
75
if ( CustomDestroyHandlers . ContainsKey ( prefabHash ) )
76
76
{
@@ -83,19 +83,19 @@ public static void RegisterCustomDestroyHandler(ulong prefabHash, DestroyHandler
83
83
}
84
84
85
85
/// <summary>
86
- /// Removes the custom spawn handler for a specific prefab hash
86
+ /// Unregisters the custom spawn handler for a specific prefab hash
87
87
/// </summary>
88
88
/// <param name="prefabHash">The prefab hash of the prefab spawn handler that is to be removed</param>
89
- public static void RemoveCustomSpawnHandler ( ulong prefabHash )
89
+ public static void UnregisterSpawnHandler ( ulong prefabHash )
90
90
{
91
91
CustomSpawnHandlers . Remove ( prefabHash ) ;
92
92
}
93
93
94
94
/// <summary>
95
- /// Removes the custom destroy handler for a specific prefab hash
95
+ /// Unregisters the custom destroy handler for a specific prefab hash
96
96
/// </summary>
97
97
/// <param name="prefabHash">The prefab hash of the prefab destroy handler that is to be removed</param>
98
- public static void RemoveCustomDestroyHandler ( ulong prefabHash )
98
+ public static void UnregisterDestroyHandler ( ulong prefabHash )
99
99
{
100
100
CustomDestroyHandlers . Remove ( prefabHash ) ;
101
101
}
@@ -743,4 +743,4 @@ internal static void OnDestroyObject(ulong networkId, bool destroyGameObject)
743
743
}
744
744
}
745
745
}
746
- }
746
+ }
0 commit comments