# Meet and Talk

1. Follow the documentation of the plugin to create the first dialogue.

{% embed url="<https://blyattukan.github.io/meet-and-talk-documentation/>" %}

2. Go to **Meet and Talk -> Example** folder and drag the **Meet And Talk** prefab into the scene.
3. Create a new script called **UHFPSDialogueLocker.cs** that will handle player locking during dialogue.

```csharp
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);
        }
    }
}
```

3. Add **UHFPSDialogueLocker** to the **Meet and Talk -> Dialogue Manager** prefab and set the **Dialogue Manager** dialogue events to **LockPlayerForDialogue()** and **UnlockPlayerForDialogue()**.

<figure><img src="/files/d0UBWcSCe756l2nYpSRp" alt=""><figcaption></figcaption></figure>

3. Create a new script called **UHFPSDialogueStarter.cs** that will be used to start the dialogue.

```csharp
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);
        }
    }
}
```

4. In your NPC, set the layer to **Interact**, which will allow you to interact with the NPC. Additionally, add the **UHFPSDialogueStarter** component to it.
5. Assign the dialogue asset to the **Dialogue Container** field.

<figure><img src="/files/s8GJ5jMtiT52tsuoN5kP" alt=""><figcaption></figcaption></figure>

Unity Asset Store link to the **Meet and Talk** asset page:

{% embed url="<https://assetstore.unity.com/packages/tools/visual-scripting/meet-and-talk-dialogue-system-free-version-245191>" %}

*Guide created by: Ravl & TW (Patrick)*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.twgamesdev.com/uhfps/integrations/meet-and-talk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
