Beispiel #1
0
 public static GameObject Spawn(GameObject prefab, Transform parent, Vector3 position, Quaternion rotation)
 {
     try
     {
         GameObject obj = orig_Spawn(prefab, parent, position, rotation);
         return(ModHooks.OnObjectPoolSpawn(obj));
     }
     catch (NullReferenceException) when(!ModLoader.Preloaded)
     {
         return(null);
     }
 }