StickyNote.cs 503 B

12345678910111213141516171819202122
  1. using System;
  2. using UnityEngine;
  3. namespace GraphProcessor
  4. {
  5. /// <summary>
  6. /// Serializable Sticky node class
  7. /// </summary>
  8. [Serializable]
  9. public class StickyNote
  10. {
  11. public Rect position;
  12. public string title = "Hello World!";
  13. public string content = "Description";
  14. public StickyNote(string title, Vector2 position)
  15. {
  16. this.title = title;
  17. this.position = new Rect(position.x, position.y, 200, 300);
  18. }
  19. }
  20. }