private void Update() { if (!GamePauser.IsPaused) { var deltaTime = Time.deltaTime; characterState.Update(GetMovementInput(), deltaTime); HandleCollisions(Move()); } DrawAxes(); }
public void ChangeCharacterState(CharacterStateSwitch3D stateSwitch) { PrintStateSwitch(stateSwitch); characterState.Exit(); characterState = stateSwitch.NewState; characterState.Enter(); if (stateSwitch.RunImmediately) { characterState.Update(stateSwitch.MovementInput, stateSwitch.DeltaTime); } }