ShakeSettings.cs 601 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace DamageNumbersPro
  5. {
  6. [System.Serializable]
  7. public struct ShakeSettings
  8. {
  9. public ShakeSettings(Vector2 customDefault)
  10. {
  11. offset = customDefault;
  12. frequency = 50f;
  13. }
  14. [Tooltip("Moves back and fourth from negative offset to positive offset.")]
  15. public Vector2 offset;
  16. [Tooltip("Changes the speed at which the number moves back and fourth.\nUsed in a sinus function.")]
  17. public float frequency;
  18. }
  19. }