Esempio n. 1
0
    void HandEquipUpdateEvent(Equippable item)
    {
        if (item == null)
        {
            currentEquipLayer = Equippable.WeaponLayer.FISTS;
            animator.runtimeAnimatorController = animController;
            return;
        }

        if (item.GetOnwer() == gp)
        {
            currentEquipLayer = item.animationType;
            currentlyEquipped = item;
            if (currentlyEquipped.AnimationsToOverride != null)
            {
                animator.runtimeAnimatorController = currentlyEquipped.AnimationsToOverride;
            }
        }
    }