DistanceScalingSettings.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace DamageNumbersPro
  5. {
  6. [System.Serializable]
  7. public struct DistanceScalingSettings
  8. {
  9. public DistanceScalingSettings (float customDefault)
  10. {
  11. baseDistance = 15f;
  12. closeDistance = 5f;
  13. farDistance = 50f;
  14. closeScale = 2f;
  15. farScale = 0.5f;
  16. }
  17. [Header("Distances:")]
  18. [Tooltip("The consistent size of the number is based on this distance.")]
  19. public float baseDistance;
  20. [Tooltip("The closest distance the number will be scaling up to.")]
  21. public float closeDistance;
  22. [Tooltip("The farthest distance the number will be scaling down to.")]
  23. public float farDistance;
  24. [Header("Scales:")]
  25. [Tooltip("The max scale the number reaches at the closest distance.")]
  26. public float closeScale;
  27. [Tooltip("The min scale the number reaches at the farthest distance.")]
  28. public float farScale;
  29. }
  30. }