11 ref map<ResourceName, ref SCR_BuildingSetup> m_BuildingSetups =
new map<ResourceName, ref SCR_BuildingSetup>();
14 static void CreateInstance()
23 if (configPath ==
string.Empty)
29 s_Instance.m_BuildingSetups.Remove(configPath);
31 return GetBuildingSetupFromConfig(configPath);
37 if (configPath ==
string.Empty)
45 Resource holder = BaseContainerTools.LoadContainer(configPath);
49 buildSetup =
SCR_BuildingSetup.Cast(BaseContainerTools.CreateInstanceFromContainer(holder.GetResource().ToBaseContainer()));
53 buildSetup.SetConfigPath(configPath);
55 s_Instance.m_BuildingSetups.Insert(configPath, buildSetup);