> 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="https://1449555691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX90W55rg_0Apo6Wjmz%2Fuploads%2FZ7qxle9tVA4BF8y9S33d%2FDisableManager.JPG?alt=media&amp;token=db7bc45f-3d81-49e4-8c04-e4d2cd184ae7" 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>
