From 63be7276cfbbed782d5740cb93b1a878a541788b Mon Sep 17 00:00:00 2001 From: Noewewwwew Date: Fri, 15 Mar 2024 14:41:18 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B4=EA=B8=89=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/MovementStates/MovementStateManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Scripts/MovementStates/MovementStateManager.cs b/Assets/Scripts/MovementStates/MovementStateManager.cs index 9beb0ebba4..65c0fb16d4 100644 --- a/Assets/Scripts/MovementStates/MovementStateManager.cs +++ b/Assets/Scripts/MovementStates/MovementStateManager.cs @@ -62,6 +62,7 @@ void Update() currentState.UpdateState(this); Attack(); + } } public void SwitchState(MovementBaseState state) @@ -79,6 +80,7 @@ void GetDirectionAndMove() controller.Move(moveDir * currentMoveSpeed * Time.deltaTime); } + public bool IsGrounded() { spherePos = new Vector3(transform.position.x, transform.position.y - groundYOffset, transform.position.z);