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