internal static void Postfix(ref CrushDamage __instance) { var seamoth = __instance.GetComponentInParent <SeaMoth>(); var exosuit = __instance.GetComponentInParent <Exosuit>(); if (seamoth != null) { VehicleUpgrader.UpgradeSeaMoth(seamoth); } else if (exosuit != null) { VehicleUpgrader.UpgradeExosuit(exosuit); } }
internal static void Postfix(ref SeaMoth __instance) { VehicleUpgrader.UpgradeSeaMoth(__instance); }