RenderObject.cs 601 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using UnityEngine;
  3. namespace Xft
  4. {
  5. public class RenderObject
  6. {
  7. protected float Fps
  8. {
  9. get
  10. {
  11. float num = 1f / (float)this.Node.Owner.Owner.MaxFps;
  12. if (!this.Node.Owner.Owner.IgnoreTimeScale)
  13. {
  14. num *= Time.timeScale;
  15. }
  16. return num;
  17. }
  18. }
  19. public virtual void Initialize(EffectNode node)
  20. {
  21. this.Node = node;
  22. }
  23. public virtual void Reset()
  24. {
  25. }
  26. public virtual void Update(float deltaTime)
  27. {
  28. }
  29. public virtual void ApplyShaderParam(float x, float y)
  30. {
  31. }
  32. public EffectNode Node;
  33. }
  34. }