CapersProject/Assets/02.Scripts/DataManager.cs
Nam Tae Gun 7fe3892d1c #18 GhostBarrel 추가 및 버그 수정
+ GhostBarrel 오브젝트 추가
+ OpaqueLit 재질에서 Receive Shadow를 받고 안받는 재질을 구분
+ 코뿔소 맵에 Maple Leaf 파티클 추가
+ 얼음두지 맵에 Bgm Missing 오류 수정
+ 얼음두지 피격 파티클, Spike Die 파티클 추가
2024-06-28 17:44:52 +09:00

58 lines
1.6 KiB
C#

using BlueWater.Players.Combat;
using Sirenix.OdinInspector;
using UnityEngine;
namespace BlueWater
{
public enum SaveStage
{
None = 0,
TitanSlime = 3,
Rhinoceros = 4,
SandMole = 5,
GhostBarrel = 6
}
public class DataManager : Singleton<DataManager>
{
public SaveStage CurrentSaveStage { get; set; }
[field: Title("Inventory")]
[field: SerializeField] public CombatInventory CombatInventory { get; private set; } = new();
public int Gold { get; set; } = 0;
// /// <summary>
// /// Dictionary 초기화 함수
// /// </summary>
// private Dictionary<string, T> CreateDictionaryFromList<T>(List<T> list, int capacity) where T : IIdx
// {
// var newDictionary = new Dictionary<string, T>(capacity);
//
// foreach (var item in list)
// {
// newDictionary.Add(item.Idx, item);
// }
//
// return newDictionary;
// }
//
// [ContextMenu("Json To So")]
// public void MakeDataSoFromJson()
// {
// NpcDataSo.npcDataList = GetJsonData<List<NpcData>>("JSON/customer_table.json");
//
// #if UNITY_EDITOR_OSX || UNITY_EDITOR_WIN
// EditorUtility.SetDirty(NpcDataSo);
// #endif
// }
//
// private static T GetJsonData<T>(string path)
// {
// var jsonString = File.ReadAllText(SystemPath.GetPath(path));
// var data = JsonConvert.DeserializeObject<T>(jsonString);
// return data;
// }
}
}