// 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");
 }
Example #2
0
 private void OnEnable()
 {
     all.Add(this);
     instance       = this;
     grabManager    = GetComponent <GrabManager>();
     groundManager  = GetComponent <GroundManager>();
     motionControl2 = GetComponent <HumanMotion2>();
     controls       = GetComponentInParent <HumanControls>();
 }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     charCon  = GetComponent <CharacterController>();
     controls = new HumanControls();
     controls.Enable();
 }