Exemple #1
0
 public static void Prefix(bool enable)
 {
     if (enable)
     {
         PlayerManager playerManager = GameManager.GetPlayerManagerComponent();
         GearEquipper.Unequip(ComponentUtils.GetEquippableModComponent(playerManager.m_ItemInHands));
     }
 }
Exemple #2
0
    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();
    }
Exemple #3
0
 public void OnEnable()
 {
     GE = (GearEquipper)target;
     GE.ApplySkinChanges();
 }
Exemple #4
0
 internal static void Postfix(PlayerManager __instance)
 {
     GearEquipper.Equip(ComponentUtils.GetEquippableModComponent(__instance.m_ItemInHands));
 }