Exemplo n.º 1
0
 private void StartInstantiate(List <ResourceRequest> Reqs)
 {
     GameObject[] array = new GameObject[Reqs.Count];
     for (int i = 0; i < Reqs.Count; i++)
     {
         array[i] = (Reqs[i].asset as GameObject);
     }
     InstantiateAsyncManager.InstanceAsync(array, base.transform, this);
 }
Exemplo n.º 2
0
 public void StartLoad()
 {
     if (objects.Length != 0)
     {
         InstantiateAsyncManager.InstanceAsync(objects, base.transform, this);
     }
     if (PrefabPaths != null && PrefabPaths.Length != 0)
     {
         ResourceLoadAsync(PrefabPaths);
     }
 }
 public void StartLoad()
 {
     if (this.objects.Length != 0)
     {
         InstantiateAsyncManager.InstanceAsync(this.objects, base.get_transform(), this);
     }
     if (this.PrefabPaths == null)
     {
         return;
     }
     if (this.PrefabPaths.Length != 0)
     {
         this.ResourceLoadAsync(this.PrefabPaths);
     }
 }