Exemple #1
0
    /// <summary>
    /// Change the current position of the story to the given <paramref name="pathString"/>.
    /// </summary>
    /// <param name="pathString">A dot-separated path string.</param>
    /// <returns>False if there was an error during the change, true otherwise.</returns>
    public bool ChoosePathString(String pathString)
    {
        if (story != null)
        {
            try {
                story.ChoosePathString(pathString);

                return(true);
            } catch (Exception e) {
                GD.PrintErr(e.ToString());
            }
        }

        return(false);
    }
Exemple #2
0
    public bool ChoosePathString(string pathString)
    {
        try
        {
            if (story != null)
            {
                story.ChoosePathString(pathString);
            }
            else
            {
                return(false);
            }
        }
        catch (Ink.Runtime.StoryException e)
        {
            GD.PrintErr(e.ToString());
            return(false);
        }

        return(true);
    }