Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Editor / FSMSave.cs
@Rackday Rackday on 21 Aug 2024 620 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class FSMSave : ScriptableObject
  5. {
  6. public string title;
  7. public List<SavedElement> states;
  8. public string rootFolder;
  9. private void Awake()
  10. {
  11. if (states == null)
  12. {
  13. states = new List<SavedElement>();
  14. }
  15. }
  16. [System.Serializable]
  17. public struct SavedElement
  18. {
  19. public State node;
  20. public Vector2 position;
  21. public SavedElement(State v,Vector2 pos)
  22. {
  23. this.node = v;
  24. this.position = pos;
  25. }
  26. }
  27. }