LaboratoryProtection/Assets/UnityTest/Common/Scripts/Set/RuntimeObjectSetMapperIniti...

34 lines
796 B
C#

using PMaker.DependencyInjection;
using PMaker.Set;
public class RuntimeObjectSetMapperInitializer : BaseBehaviour
{
//public List<MapperInfo> infos = new List<MapperInfo>();
//[SerializeField]
//[TableList]
//public struct MapperInfo
//{
// public string key;
// public string value;
//}
private void Start()
{
var set = IoC.GetSingleton<ObjectSet>();
//foreach (var item in infos)
//{
// set.nameMapper.Add(item.key, item.value);
//}
set.nameMapper["Cube"] = "ZhuanGui (11)";
}
//private void OnDestroy()
//{
// var set = IoC.GetSingleton<ObjectSet>();
// foreach (var item in infos)
// {
// set.nameMapper.Remove(item.key);
// }
//}
}