public static void Prefix(bool enable) { if (enable) { PlayerManager playerManager = GameManager.GetPlayerManagerComponent(); GearEquipper.Unequip(ModUtils.GetComponent <EquippableModComponent>(playerManager.m_ItemInHands)); } }
internal static void Postfix(PlayerManager __instance) { GearEquipper.Equip(ModUtils.GetEquippableModComponent(__instance.m_ItemInHands)); }