Meet and Talk
Meet and Talk will help you create dialogues for your games, even very complex ones
Last updated
using UHFPS.Runtime;
using UnityEngine;
namespace UHFPS.Integrations.MeetAndTalk
{
public class UHFPSDialogueLocker : MonoBehaviour
{
private GameManager gameManager;
private void Awake()
{
gameManager = GameManager.Instance;
}
public void LockPlayerForDialogue()
{
gameManager.FreezePlayer(true, true);
gameManager.DisableAllGamePanels();
}
public void UnlockPlayerForDialogue()
{
gameManager.FreezePlayer(false, false);
gameManager.ShowPanel(GameManager.PanelType.MainPanel);
}
}
}using UnityEngine;
using MEET_AND_TALK;
using UHFPS.Runtime;
namespace UHFPS.Integrations.MeetAndTalk
{
public class UHFPSDialogueStarter : MonoBehaviour, IInteractStart
{
public DialogueContainerSO dialogueContainer;
public void InteractStart()
{
DialogueManager.Instance.StartDialogue(dialogueContainer);
}
}
}