using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using Newtonsoft; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace DataTools { public enum ElementType { Quest, Conversation, Tweet, Assist, Chapter } [Serializable] public class ChapterElement : DataObject { [JsonProperty] [JsonConverter(typeof(StringEnumConverter))] [SerializeField] private ElementType type; [JsonIgnore] public ElementType Type { get { return type; } set { type = value; } } } }