title: Unity 3D First Person Controller Script Reference
body: <p>The FPS Controller Script can be found in Unity Standard Assets folder under Characters/FirstPersonCharacters. I added it to an object called Player. And when I want to pause the game (I've done a pause menu UI), I don't like that it still follows the mouse on the screen, so I want to freeze that rotation. Since I use the free rigidbody version, the RigidbodyConstrains does not work. I need to get a reference to that script to write <code>.enabled = false;</code> But it does not work, the Unity does not recognize it. I wrote:</p>
  
  <p><code>GameObject.FindGameObjectWithTag("Player").GetComponent&lt;FirstPersonController&gt;().enabled = false;</code></p>
  
  <p>But it does not work, even if I import UnityStandardAssets(I mean in the script: <code>using UnityStandardAssets;</code>)
  I've tried a lot of other solutions, but I can't find the right one! Could you please help me? Thanks in advance!</p>
  
  <p><a href="https://i.stack.imgur.com/PcIvY.png" rel="nofollow noreferrer">vs2019error_image</a></p>
  
  <p><a href="https://i.stack.imgur.com/pNC1K.png" rel="nofollow noreferrer">inspector view</a></p>