public static DialogueDatabase CreateDialogueDatabaseInstance()
        {
            Template         template = Template.FromEditorPrefs();
            DialogueDatabase database = ScriptableObject.CreateInstance <DialogueDatabase>();

            database.actors.Add(template.CreateActor(1, "Player", true));
            database.variables.Add(template.CreateVariable(1, "Alert", string.Empty));
            return(database);
        }
Ejemplo n.º 2
0
        public static DialogueDatabase CreateDialogueDatabaseInstance()
        {
            Template template    = TemplateTools.LoadFromEditorPrefs();
            var      wrapperType = TypeUtility.GetWrapperType(typeof(DialogueDatabase)) ?? typeof(DialogueDatabase);
            var      database    = ScriptableObjectUtility.CreateScriptableObject(wrapperType) as DialogueDatabase;

            database.actors.Add(template.CreateActor(1, "Player", true));
            database.variables.Add(template.CreateVariable(1, "Alert", string.Empty));
            database.ResetEmphasisSettings();
            return(database);
        }