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