// Start is called before the first frame update
 void Awake()
 {
     controlScheme = new HumanControls();
     controlScheme.Enable();
     angle            = transform.eulerAngles;
     Cursor.lockState = CursorLockMode.Locked;
     playerLayer      = LayerMask.GetMask("Player");
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     charCon  = GetComponent <CharacterController>();
     controls = new HumanControls();
     controls.Enable();
 }