Merge branch 'dev' of https://github.com/2aurore/Gameton-06 into dev
This commit is contained in:
@@ -36,8 +36,9 @@ namespace TON
|
||||
{
|
||||
_animator = GetComponent<Animator>(); // 애니메이터 컴포넌트 초기화
|
||||
|
||||
_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(); // 몬스터 데이터 로드 및 적용
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user