// Update is called once per frame void FixedUpdate() { if (!ManagerPause.Pause) { if (DirecctionX > 0) { move.SetMovement(Vector2.right); } else if (DirecctionX < 0) { move.SetMovement(Vector2.right * -1); } else { move.SetMovement(Vector2.zero); } } }
protected override void ActionMovement(Vector2 movement) { move.SetMovement(movement); }