From 46c858c2a885c8bab81cf8be04172432c4ae8178 Mon Sep 17 00:00:00 2001 From: Mingu Kim Date: Fri, 15 Aug 2025 21:37:43 +0900 Subject: [PATCH] =?UTF-8?q?AttackState=20=EA=B5=AC=EC=A1=B0=20=ED=8B=80=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Player/StateMachine.cs | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/Assets/Scripts/Player/StateMachine.cs b/Assets/Scripts/Player/StateMachine.cs index a82f4f76..48d627d2 100644 --- a/Assets/Scripts/Player/StateMachine.cs +++ b/Assets/Scripts/Player/StateMachine.cs @@ -200,4 +200,42 @@ public class JumpState : IState } return this; } +} + +public class AttackState : IState +{ + private PlayerMove _player; + private IdleState _idleState; + + public AttackState(PlayerMove player) + { + _player = player; + } + + public void Enter() + { + + } + + public void Update() + { + + } + + public void FixedUpdate() + { + + } + + public void Exit() + { + // _player.Animator.SetBool(PlayerMove.IsAttacking, false); + } + + public IState CheckTransition() + { + // 공격이 종료됐을 때 + // idle + return this; + } } \ No newline at end of file