Пример #1
0
 public static void Postfix(Deployable __instance)
 {
     if (__instance.IsDeployed && !__instance.PackedStateItemPrefab)
     {
         Instance.AddDestroyInteraction(__instance);
     }
 }
Пример #2
0
            public static void Postfix(Deployable __instance)
            {
                var self = __instance;

                if (self.IsDeployed && self.PackedStateItemPrefab == null)
                {
                    Instance.AddDestroyInteraction(self);
                }
            }