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