> For the complete documentation index, see [llms.txt](https://speedtutoruk.gitbook.io/letter-and-note-system-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://speedtutoruk.gitbook.io/letter-and-note-system-doc/support/changing-character-controller.md).

# 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>
