Skip Button
Posted: Tue Feb 23, 2021 8:06 am
Hello
I have made a button inside my Dialogue UI.
Its just called SKIP BUTTON and is right next to Continue Button.
This is the code:
But this makes all my other conversations not triggering?
I have several Conversations that trigger when enemies are killed.
How can i make this work? I JUST want to make a button so user can skip to end of conversation
I have made a button inside my Dialogue UI.
Its just called SKIP BUTTON and is right next to Continue Button.
This is the code:
Code: Select all
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PixelCrushers.DialogueSystem;
using UnityEngine.UI;
public class SkipDialogueGameObject : MonoBehaviour
{
//public GameObject DialogueUI;
public void SkipDialogueFunction()
{
DialogueLua.SetVariable("ConversationIsOver", true);
DialogueManager.instance.StopConversation();
// DialogueUI.SetActive(false);
}
}
I have several Conversations that trigger when enemies are killed.
How can i make this work? I JUST want to make a button so user can skip to end of conversation