Beispiel #1
0
 /// <summary>
 /// Initiates the dialouge with a new set
 /// </summary>
 /// <param name="set">The new dialouge set to show dialouge through</param>
 public void initDialouge(DialougeSet set)
 {
     currentSet        = set;
     currentNodeNumber = 0;
     showDialougeUI();
     readDialouge();
 }
Beispiel #2
0
    /// <summary>
    /// Jumps to the next node with a certain step size
    /// </summary>
    /// <param name="jump">Defaults to jumping only one index, can be set higher if desired</param>
    public void gotoNextNode(int jump = 1)
    {
        currentNodeNumber += jump;

        if (currentNodeNumber >= currentSet.nodes.Length)
        {
            Debug.Log("End the dialouge now!");
            currentSet = null;
            hideDialougeUI();
        }
        else
        {
            readDialouge();
        }
    }