PrefabsToPathTileConectionButtonDropSettings.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #if UNITY_EDITOR
  2. using UnityEngine;
  3. using System;
  4. namespace O3DWB
  5. {
  6. [Serializable]
  7. public class PrefabsToPathTileConectionButtonDropSettings : ScriptableObject
  8. {
  9. #region Private Variables
  10. [SerializeField]
  11. private PrefabCategory _destinationCategoryForDroppedPrefabs;
  12. [SerializeField]
  13. private PrefabsToPathTileConectionButtonDropSettingsView _view;
  14. #endregion
  15. #region Public Properties
  16. public PrefabCategory DestinationCategoryForDroppedPrefabs
  17. {
  18. get
  19. {
  20. if (_destinationCategoryForDroppedPrefabs == null) _destinationCategoryForDroppedPrefabs = PrefabCategoryDatabase.Get().GetDefaultPrefabCategory();
  21. return _destinationCategoryForDroppedPrefabs;
  22. }
  23. set
  24. {
  25. if (value != null) _destinationCategoryForDroppedPrefabs = value;
  26. }
  27. }
  28. public PrefabsToPathTileConectionButtonDropSettingsView View { get { return _view; } }
  29. #endregion
  30. #region Constructors
  31. public PrefabsToPathTileConectionButtonDropSettings()
  32. {
  33. _view = new PrefabsToPathTileConectionButtonDropSettingsView(this);
  34. }
  35. #endregion
  36. }
  37. }
  38. #endif