YSpaceNode.cs 768 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace WXB
  6. {
  7. class YSpaceNode : NodeBase
  8. {
  9. public float d_offset;
  10. public override float getHeight() { return d_offset; }
  11. public override float getWidth() { return 0.001f; }
  12. public override void render(float maxWidth, RenderCache cache, ref float x, ref uint yline, List<Line> lines, float offsetX, float offsetY)
  13. {
  14. if (d_bNewLine == true)
  15. {
  16. yline++;
  17. x = offsetX + NextLineX;
  18. }
  19. else
  20. {
  21. }
  22. }
  23. public override void Release()
  24. {
  25. base.Release();
  26. d_offset = 0f;
  27. }
  28. };
  29. }