Example #1
0
        private void InitIfNeeded()
        {
            // create the main Dialogue runner, and pass our variableStorage to it
            varStorage = new MerinoVariableStorage();
            dialogue   = new Yarn.Dialogue(varStorage);

            // setup the logging system.
            dialogue.LogDebugMessage = message => MerinoDebug.Log(LoggingLevel.Verbose, message);
            dialogue.LogErrorMessage = PlaytestErrorLog;

            // icons
            if (errorIcon == null)
            {
                errorIcon = EditorGUIUtility.Load("icons/d_console.erroricon.sml.png") as Texture;
            }
        }