ClampAttribute.cs 239 B

123456789101112131415
  1. using UnityEngine;
  2. namespace HQFPSWeapons
  3. {
  4. public class ClampAttribute : PropertyAttribute
  5. {
  6. public readonly Vector2 ClampLimits;
  7. public ClampAttribute(float min, float max)
  8. {
  9. ClampLimits = new Vector2(min, max);
  10. }
  11. }
  12. }