Ejemplo 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);
        }
    }
Ejemplo n.º 2
0
 public static bool RemoveAll()
 {
     FindOPM();
     if (opmScript == null)             // didn't find an object pool manager
     {
         return(false);
     }
     else
     {
         return(opmScript.RemoveAll());
     }
 }