public static void newData() { //Debug.Log("Creating new dialoguer_data file."); __data = ScriptableObject.CreateInstance <DialogueEditorMasterObjectWrapper>(); //_data.Init(); save(); }
public static void newData() { //Debug.Log("Creating new dialoguer_data file."); __data = ScriptableObject.CreateInstance<DialogueEditorMasterObjectWrapper>(); //_data.Init(); save(); }
public static void load() { __data = AssetDatabase.LoadAssetAtPath(DialogueEditorFileStatics.ROOT_PATH + DialogueEditorFileStatics.DIALOGUE_DATA_FILENAME_SO, typeof(DialogueEditorMasterObjectWrapper)) as DialogueEditorMasterObjectWrapper; if (__data == null) { Debug.LogWarning("File dialoguer_data_object does not exist, creating new."); newData(); } }