void CheckRollIntent(float jumpDirY) { float angle = Mathf.Asin(jumpDirY) * Mathf.Rad2Deg; if (angle < JUMP_ROLL_MARGIN) { mov2D.SetRollIntent(true); } //if (Input.GetKeyUp(KeyCode.Space) || Input.GetMouseButtonUp(1) || Input.GetKeyUp(KeyCode.Z)) // mov2D.SetRollIntent(false); }