// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Mouse0) && !isAttacking) { Attack(); } if (isAttacking && plataformerMotor.IsOnGround()) { plataformerMotor.velocity = new Vector2(0, plataformerMotor.velocity.y); } }
public bool ShouldSaveTransform() { return(_motor.IsOnGround()); }