FollowSettings.cs 489 B

123456789101112131415161718192021
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace DamageNumbersPro
  5. {
  6. [System.Serializable]
  7. public struct FollowSettings
  8. {
  9. public FollowSettings(float customDefault)
  10. {
  11. speed = 10;
  12. drag = 0f;
  13. }
  14. [Tooltip("Speed at which target is followed.")]
  15. public float speed;
  16. [Tooltip("Decreases follow speed over time.")]
  17. public float drag;
  18. }
  19. }