private static ConfigDataSetting CreateAsset() { ConfigDataSetting setting = ScriptableObject.CreateInstance <ConfigDataSetting>(); AssetDatabase.CreateAsset(setting, ConfigDataSettingAssetPath); return(setting); }
public ConfigDataTypeDefineCodeGenerator(Dictionary <string, ConfigDataTableInfo> configDataTableInfoDic, ConfigDataSetting setting) { m_configDataTableInfoDic = configDataTableInfoDic; m_setting = setting; }
private static ConfigDataSetting GetAsset() { ConfigDataSetting setting = AssetDatabase.LoadAssetAtPath(ConfigDataSettingAssetPath, typeof(ConfigDataSetting)) as ConfigDataSetting; return(setting); }
void OnEnable() { m_setting = ConfigDataSetting.Instance; }