Example #1
0
 public void OnPointerClick(PointerEventData pedata)
 {
     Debug.Log("works....");
     if (pedata.button == PointerEventData.InputButton.Left && DialogueSingletonManager.IsAvailable())
     {
         SceneTransition.GoToScene(ToGoTo);
     }
 }
Example #2
0
    public override IEnumerator PerformAction(Dialogue d)
    {
        Debug.Log("Ending!");
        yield return(new WaitForSeconds(0.8f));

        d.CloseDialogueWindow();
        d.SetSpeaker("");
        DialogueSingletonManager.EndDialogueRunning();
        yield return(null);
    }
Example #3
0
    public static void GoToScene(string sceneName)
    {
        if (instance.changing)
        {
            return;
        }

        DialogueSingletonManager.EndDialogueRunning();

        instance.StartCoroutine(instance.LoadScene(sceneName));
    }
Example #4
0
    public void OpenDialogueWindow()
    {
        Debug.Log("start");

        if (!DialogueSingletonManager.IsAvailable())
        {
            return;
        }

        dialogueHolder.SetActive(true);
        DialogueSingletonManager.SetDialogueRunning();
        story.Begin();
        open = true;
    }