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