public static void Prefix(bool enable) { if (enable) { PlayerManager playerManager = GameManager.GetPlayerManagerComponent(); GearEquipper.Unequip(ComponentUtils.GetEquippableModComponent(playerManager.m_ItemInHands)); } }
void Awake() { //Assigns characterAnimator to the first child of this transform. Change it to your animation gameobject if you dont want it to be the first transform characterAnimator = transform.GetChild(0).GetComponent <SkeletonAnimation>(); //Access the class responsible for equipping gears. AccGE = GetComponent <GearEquipper>(); CreateAnimationsDictionary(); }
public void OnEnable() { GE = (GearEquipper)target; GE.ApplySkinChanges(); }
internal static void Postfix(PlayerManager __instance) { GearEquipper.Equip(ComponentUtils.GetEquippableModComponent(__instance.m_ItemInHands)); }