GameAction.cs 639 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System;
  5. using Newtonsoft.Json;
  6. using Newtonsoft.Json.Converters;
  7. public enum GameActionType { TalkTo, TravelTo, StartGig ,Shopping,Purchase,Lookbook,Customization,Assistances}
  8. [Serializable]
  9. public class GameAction {
  10. [JsonProperty]
  11. [SerializeField]
  12. // [JsonConverter(typeof(StringEnumConverter))]
  13. public GameActionType type;
  14. [JsonProperty]
  15. [SerializeField]
  16. public string propertyId;
  17. public GameAction(GameActionType type,string propertyId)
  18. {
  19. this.type = type;
  20. this.propertyId = propertyId;
  21. }
  22. }