Beispiel #1
0
 public void SpawnObject(BundleKey bundleKey, Vector3 pos, Quaternion rot, Transform parent, Action <GameObject> callback = null)
 {
     this.SpawnObject(bundleKey.bundle, bundleKey.asset, pos, rot, parent, callback);
 }
Beispiel #2
0
 public void SpawnAnimalFromZone(BundleKey bundleKey, Vector3 pos, Quaternion rot, AnimalSpawnZone spawnZone)
 {
     Debug.Log("Starting to spawn animal from spawn zone");
     this.queuedAnimalZones.Add(spawnZone);
     this.SpawnObject(bundleKey, pos, rot, null, new Action <GameObject>(this.OnSpawnAnimalFromZone));
 }
 private void SpawnFromAssetBundle(AnimalSpawnZone zone, BundleKey bundleKey, Vector3 pos, Quaternion rot)
 {
     BundledPrefabSpawnPoolManager.instance.SpawnAnimalFromZone(bundleKey, pos, rot, zone);
 }