ScaleByNumberSettings.cs 881 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace DamageNumbersPro
  5. {
  6. [System.Serializable]
  7. public struct ScaleByNumberSettings
  8. {
  9. public ScaleByNumberSettings(float customDefault)
  10. {
  11. fromNumber = 0f;
  12. fromScale = 1f;
  13. toNumber = 1000f;
  14. toScale = 2f;
  15. }
  16. [Header("Number Range:")]
  17. [Tooltip("The number at which scaling starts.")]
  18. public float fromNumber;
  19. [Tooltip("The number at which scaling caps.")]
  20. public float toNumber;
  21. [Header("Scale Range:")]
  22. [Tooltip("The scale when the number is smaller of equal 'From Number'.")]
  23. public float fromScale;
  24. [Tooltip("The scale when the number is bigger of equal 'To Number'.")]
  25. public float toScale;
  26. }
  27. }