# Changing Character Controller

* You can see that we create a reference to your controller at the top of the “**NoteDisableManager**” script.&#x20;
  * NOTE: You want to disable input and mouse look when you disable the player!
  * Change the "P**layer**" reference to how you would disable your own controller

<figure><img src="/files/7DEwqx85e3htLmFY3AxV" alt=""><figcaption></figcaption></figure>

Similar to how I've done so below:

<pre class="language-csharp"><code class="lang-csharp">public class NoteDisableManager : MonoBehaviour
<strong>{
</strong>    [SerializeField] private FirstPersonController player = null;
    [SerializeField] private NotesInteractor noteInteractorScript =  null;

    public static NoteDisableManager instance;

    void Awake()
    {
        if (instance != null) { Destroy(gameObject); }
        else { instance = this; DontDestroyOnLoad(gameObject); }
    }

    private void Start()
    {
        DebugReferenceCheck();
    }

    public void ToggleRaycast(bool disable)
    {
        noteInteractorScript.enabled = disable;
    }

    public void DisablePlayer(bool isActive)
    {
        player.enabled = !isActive;
        NoteUIManager.instance.HideCursor(!isActive);
        noteInteractorScript.enabled = !isActive;
    }
}
</code></pre>


---

# 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://speedtutoruk.gitbook.io/letter-and-note-system-doc/support/changing-character-controller.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.
