static bool DefaultReleaseFallback(GameObject obj) { try { DeathManager deathManager = obj.GetComponent <DeathManager>(); if (deathManager != null) { deathManager.simpleDeath(); } Object.Destroy(obj); return(true); } catch { return(false); } }
static bool DefaultReleaseFallback(GameObject obj) { try { DeathManager deathManager = obj.GetComponent <DeathManager>(); if (deathManager != null) { deathManager.simpleDeath(); } Object.Destroy(obj); return(true); } catch { return(false); } }