public float gravityScale = 1; //Default 1 private void Awake() { //Map Input and controls. controls = new PlayerControls_Split(); controller = GetComponent <CharacterController>(); //Use lambda expressions controls.Split_Gameplay.LeftCharMovement.performed += ctx => LeftMovement = ctx.ReadValue <Vector2>(); controls.Split_Gameplay.LeftCharMovement.canceled += ctx => LeftMovement = Vector2.zero; controls.Split_Gameplay.RightCharMovement.performed += ctx => RightMovement = ctx.ReadValue <Vector2>(); controls.Split_Gameplay.RightCharMovement.canceled += ctx => RightMovement = Vector2.zero; }
public Split_GameplayActions(PlayerControls_Split wrapper) { m_Wrapper = wrapper; }