CapersProject/Assets/02.Scripts/DataManager.cs
Nam Tae Gun 51798c3346 #16 SandMole(모래 두더지) 보스 추가 중
+ AiMovement 클래스 재생성 및 초기화 방식 변경
+ AnimationController 클래스 초기화 방식 변경
+ MapManager, MapController 로직 수정
+ BaseBoss 프리팹 수정
+ SandMole 보스에 맞게 맵 추가
+ 임시 SandMole, GhostBarrel 이미지 추가
+ 기존 GroundGreen, GroundRed 스프라이트 정사각형으로 변경, 수정에 따라 BaseMapController Ground, Wall 수정
+ 코뿔소 맵 투명화 Props 추가

Closes #12
2024-06-14 01:46:37 +09:00

59 lines
1.6 KiB
C#

using BlueWater.Players.Combat;
using Sirenix.OdinInspector;
using UnityEngine;
namespace BlueWater
{
public enum SaveStage
{
None = 0,
FirstTutorial,
SecondTutorial,
TitanSlime,
Rhinoceros,
SandMole
}
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;
// }
}
}