You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 line
505 B

  1. using System;
  2. using UnityEngine;
  3. namespace Tweening
  4. {
  5. public sealed class TrailRendererClearTweenerTrack : TweenerTrack<TrailRenderer, bool>
  6. {
  7. public override void UpdateComponentValue(float evaluatedTime)
  8. {
  9. if (Mathf.Approximately(evaluatedTime, 1f))
  10. {
  11. this._component.Clear();
  12. }
  13. }
  14. public override void ResetComponentValue()
  15. {
  16. this._component.Clear();
  17. }
  18. public override void InitializeComponentValue()
  19. {
  20. this._component.Clear();
  21. }
  22. }
  23. }