Skip to content

Commit 2b6befd

Browse files
committed
removed yet unused method
1 parent 4c7f63d commit 2b6befd

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

com.unity.netcode.gameobjects/Runtime/Spawning/INetworkPrefabInstanceHandlerWithData.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ public interface INetworkPrefabInstanceHandlerWithData<T> where T : struct, INet
1313
{
1414
NetworkObject Instantiate(ulong ownerClientId, Vector3 position, Quaternion rotation, T instantiationData);
1515
void Destroy(NetworkObject networkObject);
16-
17-
public static void InjectInstantiationDataForObject(GameObject prefab, T instantiationData)
18-
{
19-
if (prefab.TryGetComponent<NetworkObject>(out var networkObject))
20-
{
21-
networkObject.NetworkManager.PrefabHandler.InjectInstantiationData(prefab, instantiationData);
22-
}
23-
else
24-
{
25-
Debug.LogError($"Prefab {prefab.name} does not have a NetworkObject component.");
26-
}
27-
}
2816
}
2917

3018
internal interface INetworkPrefabInstanceHandlerWithData : INetworkPrefabInstanceHandler

0 commit comments

Comments
 (0)