Пример #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;
            }
        }
    }
Пример #2
0
 void Awake()
 {
     rightHand         = new HandSocket(rightSocketTransform);
     currentEquipLayer = Equippable.WeaponLayer.FISTS;
 }