예제 #1
0
 protected virtual void DrawWeaponsHandle(vThirdPersonInput tpInput, vIEquipment equipment, UnityEngine.Events.UnityAction onStart, UnityEngine.Events.UnityAction onFinish, bool immediate = false)
 {
     if (holderManager.inEquip)
     {
         return;
     }
     if (!immediate)
     {
         tpInput.animator.SetInteger("EquipItemID", equipment.equipPoint.equipPointName.Contains("Right") ? equipment.referenceItem.EquipID : -equipment.referenceItem.EquipID);
         tpInput.animator.SetTrigger("EquipItem");
     }
     StartCoroutine(holderManager.EquipRoutine(equipment.referenceItem.equipDelayTime, immediate, onStart, onFinish));
 }
 protected virtual void DrawWeaponsHandle(vThirdPersonInput tpInput, vIEquipment equipment, UnityEngine.Events.UnityAction onStart, UnityEngine.Events.UnityAction onFinish, bool immediate = false)
 {
     if (holderManager.inEquip)
     {
         return;
     }
     if (!immediate)
     {
         if (!string.IsNullOrEmpty(equipment.referenceItem.EnableAnim) && equipment != null && equipment.equipPoint != null)
         {
             tpInput.animator.SetBool("FlipEquip", equipment.equipPoint.equipPointName.Contains("Left"));
             tpInput.animator.CrossFade(equipment.referenceItem.EnableAnim, 0.25f);
         }
         else
         {
             immediate = true;
         }
     }
     StartCoroutine(holderManager.EquipRoutine(equipment.referenceItem.enableDelayTime, immediate, onStart, onFinish));
 }