Instruction.cs 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace DataTools
  6. {
  7. [Serializable]
  8. public class Instruction
  9. {
  10. [JsonProperty]
  11. [SerializeField]
  12. private string conversationID;
  13. [JsonProperty]
  14. [SerializeField]
  15. private List<GigAction> actions;
  16. public Instruction(string conversationID, List<GigAction> actions)
  17. {
  18. this.conversationID = conversationID;
  19. this.actions = actions;
  20. }
  21. [JsonIgnore]
  22. public string ConversationID
  23. {
  24. get
  25. {
  26. return conversationID;
  27. }
  28. set
  29. {
  30. conversationID = value;
  31. }
  32. }
  33. [JsonIgnore]
  34. public List<GigAction> Actions
  35. {
  36. get
  37. {
  38. return actions;
  39. }
  40. set
  41. {
  42. actions = value;
  43. }
  44. }
  45. }
  46. }