Beispiel #1
0
 public static void RegisterPrefab(GameObject prefab)
 {
     NetworkScene.RegisterPrefab(prefab);
 }
Beispiel #2
0
 public static void RegisterPrefab(GameObject prefab, SpawnDelegate spawnHandler, UnSpawnDelegate unspawnHandler)
 {
     NetworkScene.RegisterPrefab(prefab, spawnHandler, unspawnHandler);
 }
Beispiel #3
0
 // this assigns the newAssetId to the prefab. This is for registering dynamically created game objects for already know assetIds.
 public static void RegisterPrefab(GameObject prefab, NetworkHash128 newAssetId)
 {
     NetworkScene.RegisterPrefab(prefab, newAssetId);
 }