Example #1
0
 public static GameObject spawnRandom(Vector2 spawnpoint, bool weighted, Account information)
 {
     if (weighted)
     {
         if (information.weightedValues.Count < information.throwables.Count)
         {
             initializeRandomValues(information);
         }
         return(weightedSpawn(information, spawnpoint));
     }
     else
     {
         return(GenerateRandomThrowable.unweightedSpawn(information.throwables, spawnpoint));
     }
 }
Example #2
0
 public static GameObject presentSpawnRandom(Vector2 spawnpoint, Quaternion rot, bool weighted, Account information)
 {
     return(GenerateRandomThrowable.presentSpawn(spawnpoint, rot, weighted, information));
 }