Hertzole / gold-player

A first person player controller for Unity.
MIT License
160 stars 16 forks source link

How to disable "Can look around"? #44

Closed yuimelhior closed 1 year ago

yuimelhior commented 1 year ago

What I want to do: I want to do a pause menu. But, mouse look isnt lock.

What I've tried: I'm write a script, where i tried: using Hertzole.GoldPlayer; public class PauseMenu : MonoBehaviour { public GoldPlayerController Player; Player.Camera.CanLookAround = false; } But, it's not worked.

upd: because i'm placed it in wrong public void, sorry