Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

42 Zeilen
993 B

  1. using System;
  2. using UnityEngine;
  3. namespace Tweening
  4. {
  5. public sealed class CanvasGroupInteractableTweenerTrack : TweenerTrack<CanvasGroup, bool>
  6. {
  7. public override void UpdateComponentValue(float evaluatedTime)
  8. {
  9. bool flag = Mathf.Approximately(Mathf.LerpUnclamped((!this._from) ? 0f : 1f, (!this._to) ? 0f : 1f, evaluatedTime), 1f);
  10. if (this._component.interactable != flag)
  11. {
  12. this._component.interactable = flag;
  13. }
  14. }
  15. public override void ResetComponentValue()
  16. {
  17. if (this._dynamicFrom)
  18. {
  19. this._from = this._component.interactable;
  20. }
  21. else if (this._component.interactable != this._from)
  22. {
  23. this._component.interactable = this._from;
  24. }
  25. }
  26. public override void InitializeComponentValue()
  27. {
  28. if (this._dynamicFrom)
  29. {
  30. this._from = this._component.interactable;
  31. }
  32. else if (this._component.interactable != this._from)
  33. {
  34. this._component.interactable = this._from;
  35. }
  36. }
  37. }
  38. }