Esempio n. 1
0
    public static bool DespawnAll()
    {
        bool result = false;

        FindOPM();
        if (opmScript == null)             // didn't find an object pool manager
        {
            return(false);
        }
        else
        {
            result = opmScript.RemoveAll();
            if (result == true)
            {
                opmScript.poolRef.Clear();
            }
            return(result);
        }
    }
Esempio n. 2
0
 public static bool RemoveAll()
 {
     FindOPM();
     if (opmScript == null)             // didn't find an object pool manager
     {
         return(false);
     }
     else
     {
         return(opmScript.RemoveAll());
     }
 }