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