ItemBaseHandWeapon.cs 779 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. using KairoEngine.SFX;
  6. namespace KairoEngine.Inventory
  7. {
  8. public enum HandWeaponType
  9. {
  10. Club,
  11. Sword,
  12. Knife,
  13. Spear
  14. }
  15. [CreateAssetMenu(fileName = "Item", menuName = "KairoEngine/Items/Hand Weapon Item", order = 4)]
  16. public class ItemBaseHandWeapon : ItemBaseHoldable
  17. {
  18. [TitleGroup("Hand Weapon Properties")]
  19. public HandWeaponType weaponType;
  20. [TitleGroup("Hand Weapon Properties")]
  21. public int damage = 1;
  22. [TitleGroup("Hand Weapon Properties")]
  23. public float attackDistance = 1.3f;
  24. [TitleGroup("Weapon Properties")]
  25. public SFXClip attackSound;
  26. }
  27. }