Esempio n. 1
0
 public void BuildCommonSpawnPoints(ref List <ActorPreloadTab> list)
 {
     CommonSpawnPoint[] pointArray = UnityEngine.Object.FindObjectsOfType <CommonSpawnPoint>();
     if ((pointArray != null) && (pointArray.Length != 0))
     {
         for (int i = 0; i < pointArray.Length; i++)
         {
             CommonSpawnPoint point = pointArray[i];
             if (point != null)
             {
                 point.PreLoadResource(ref list, this);
             }
         }
     }
 }
Esempio n. 2
0
 public void BuildCommonSpawnPoints(ref List <ActorPreloadTab> list)
 {
     CommonSpawnPoint[] array = Object.FindObjectsOfType <CommonSpawnPoint>();
     if (array == null || array.Length == 0)
     {
         return;
     }
     for (int i = 0; i < array.Length; i++)
     {
         CommonSpawnPoint commonSpawnPoint = array[i];
         if (!(commonSpawnPoint == null))
         {
             commonSpawnPoint.PreLoadResource(ref list, this);
         }
     }
 }