ColorByNumberSettings.cs 711 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace DamageNumbersPro
  5. {
  6. [System.Serializable]
  7. public struct ColorByNumberSettings
  8. {
  9. public ColorByNumberSettings(float customValue)
  10. {
  11. colorGradient = new Gradient();
  12. colorGradient.SetKeys(new GradientColorKey[] { new GradientColorKey(new Color(1f, 0.8f, 0.5f), 0f), new GradientColorKey(new Color(1f, 0f, 0f), 1f) }, new GradientAlphaKey[] { new GradientAlphaKey(1, 0) });
  13. fromNumber = 10;
  14. toNumber = 100;
  15. }
  16. public Gradient colorGradient;
  17. public float fromNumber;
  18. public float toNumber;
  19. }
  20. }