From 3677c848d2f22e6994b61925f4fe86761703430e Mon Sep 17 00:00:00 2001 From: Mingu Kim Date: Wed, 26 Feb 2025 01:19:22 +0900 Subject: [PATCH] =?UTF-8?q?textState=20null=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=EC=A1=B0=EC=B9=98=20=EC=B6=94=ED=9B=84=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=20=EC=98=88=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Gameton/Scripts/Monster/MonsterBase.cs | 5 +++-- .../Assets/Gameton/Scripts/Monster/StateMachine.cs | 10 ++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Gameton-06/Assets/Gameton/Scripts/Monster/MonsterBase.cs b/Gameton-06/Assets/Gameton/Scripts/Monster/MonsterBase.cs index aaa501a6..3620df27 100644 --- a/Gameton-06/Assets/Gameton/Scripts/Monster/MonsterBase.cs +++ b/Gameton-06/Assets/Gameton/Scripts/Monster/MonsterBase.cs @@ -36,8 +36,9 @@ namespace TON { _animator = GetComponent(); // 애니메이터 컴포넌트 초기화 - _stateMachine = new StateMachine(new IdleState(), this, _textState); - // _stateMachine = new StateMachine(new IdleState(), this); + // TODO : 추후 제거 예정 + // _stateMachine = new StateMachine(new IdleState(), this, _textState); + _stateMachine = new StateMachine(new IdleState(), this); InitializeMonsterData(); // 몬스터 데이터 로드 및 적용 diff --git a/Gameton-06/Assets/Gameton/Scripts/Monster/StateMachine.cs b/Gameton-06/Assets/Gameton/Scripts/Monster/StateMachine.cs index 69d58942..21c31764 100644 --- a/Gameton-06/Assets/Gameton/Scripts/Monster/StateMachine.cs +++ b/Gameton-06/Assets/Gameton/Scripts/Monster/StateMachine.cs @@ -10,8 +10,9 @@ namespace TON private MonsterBase _monsterBase; private TextMeshProUGUI _textState; - public StateMachine(IState state, MonsterBase monsterBase, TextMeshProUGUI textState) - // public StateMachine(IState state, MonsterBase monsterBase) + // TODO : 추후 제거 예정 + // public StateMachine(IState state, MonsterBase monsterBase, TextMeshProUGUI textState) + public StateMachine(IState state, MonsterBase monsterBase) { // 초기 상태 객체 생성 _monsterBase = monsterBase;; @@ -19,8 +20,9 @@ namespace TON _state = state; _state.Enter(_monsterBase); - _textState = textState; - _textState.text = _state.ToString(); + // TODO : 추후 제거 예정 + // _textState = textState; + // _textState.text = _state.ToString(); } public void Update()