# Samples

The samples for the Messenger Tool can be found in the `Assets/Plugins/JrCooler/EasyMultiplayer/Messenger/Samples` folder. This directory contains both the sample scripts and the sample scene. Below, we provide explanations for each script.

<details>

<summary>MessengerSampleGettingStarted.cs</summary>

This script explains the basic usage of the Messenger system and demonstrates how to use the redirection feature.

</details>

<details>

<summary>MessengerSampleStatic.cs</summary>

This script provides an example of how messages can be utilized throughout your game, from static classes to MonoBehaviour, as long as you have at least one instance of them!

</details>

<details>

<summary>MessengerSampleComplex.cs</summary>

This script showcases the capabilities of JSON serialization within the Messenger system.

</details>

If you still need any help, [contact me](/easy-multiplayer/welcome.md#contact)!


---

# 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://jrcooler.gitbook.io/easy-multiplayer/messenger/samples.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.
