From 24e29ba37ea77c123aad8a6e7e636d1ad56db78c Mon Sep 17 00:00:00 2001 From: fiore Date: Wed, 14 May 2025 10:38:20 +0900 Subject: [PATCH 1/8] =?UTF-8?q?[fix]=20=EB=A7=88=EB=B2=95=EC=82=AC=20?= =?UTF-8?q?=EB=AA=AC=EC=8A=A4=ED=84=B0=20=EC=B5=9C=EB=8C=80=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99=20=EC=86=8D=EB=8F=84=205->=2020=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - navAgent로 서서히 가속됨 DEG-62 --- Assets/JYY/Prefabs/Alien Big Blink.prefab | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/JYY/Prefabs/Alien Big Blink.prefab b/Assets/JYY/Prefabs/Alien Big Blink.prefab index a773ae34..7b47e9b5 100644 --- a/Assets/JYY/Prefabs/Alien Big Blink.prefab +++ b/Assets/JYY/Prefabs/Alien Big Blink.prefab @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dfd903c1aeeb5a94942b711769cdf0466e1f9d045ece4136273a665742493e52 -size 77259 +oid sha256:ff1c68c25fd4949b679eb041338b8626d2f7cc5e7f62836e3b5bfcff7720cc67 +size 77247 From e68e7292286696a7ec5276f908e08af0b793fc30 Mon Sep 17 00:00:00 2001 From: Sehyeon Date: Wed, 14 May 2025 11:08:02 +0900 Subject: [PATCH 2/8] =?UTF-8?q?DEG-166=20[Feat]=20=EB=8C=80=ED=99=94?= =?UTF-8?q?=EB=AC=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Resources/Dialogues/dialogue.json | 158 ++++++++++++++++++++++- 1 file changed, 156 insertions(+), 2 deletions(-) diff --git a/Assets/Resources/Dialogues/dialogue.json b/Assets/Resources/Dialogues/dialogue.json index 38b6326c..b228cdb7 100644 --- a/Assets/Resources/Dialogues/dialogue.json +++ b/Assets/Resources/Dialogues/dialogue.json @@ -46,6 +46,97 @@ "id": "player_intro_3", "name": "주인공", "text": "할 수 밖에 없잖아...!!", + "nextId": "fairy_intro_5", + "phase": "intro" + }, + { + "id": "fairy_intro_5", + "name": "냉장고 요정", + "text": "아, 추가로 설명을 하자면!", + "nextId": "player_intro_4", + "phase": "intro" + }, + { + "id": "player_intro_4", + "name": "냉장고 요정", + "text": "시간 아래의 바가 보이지? 상단은 너의 회사 평판, 하단은 체력 바야.", + "nextId": "fairy_intro_6", + "phase": "intro" + }, + { + "id": "fairy_intro_6", + "name": "냉장고 요정", + "text": "던전은 냉장고를 통해 진입할 수 있어. 일주일 내에 스테이지 2개를 깨주기 바라!", + "nextId": "player_intro_5", + "phase": "intro" + }, + { + "id": "player_intro_5", + "name": "주인공", + "text": "(앞으로 중고 거래를 안해야겠어.) 그래. 그런데 평판이나 체력이 0이 되면 뭐가... 돼?", + "nextId": "fairy_intro_7", + "phase": "intro" + }, + { + "id": "fairy_intro_7", + "name": "냉장고 요정", + "text": "평판이 0이 되면 굉장한 일이 벌어지지...", + "nextId": "player_intro_6", + "phase": "intro" + }, + { + "id": "player_intro_6", + "name": "주인공", + "text": "설마 용사로 전직-", + "nextId": "fairy_intro_8", + "phase": "intro" + }, + { + "id": "fairy_intro_8", + "name": "냉장고 요정", + "text": "너가 회사에서 짤려.", + "nextId": "player_intro_7", + "phase": "intro" + }, + { + "id": "player_intro_7", + "name": "주인공", + "text": "...........?", + "nextId": "fairy_intro_9", + "phase": "intro" + }, + { + "id": "fairy_intro_9", + "name": "냉장고 요정", + "text": "그리고 체력 0이 되면 지쳐서 기절할 거야.", + "nextId": "player_intro_8", + "phase": "intro" + }, + { + "id": "player_intro_8", + "name": "주인공", + "text": "...........................", + "nextId": "fairy_intro_10", + "phase": "intro" + }, + { + "id": "fairy_intro_10", + "name": "냉장고 요정", + "text": "관리를 잘 하는 게 좋겠지?", + "nextId": "player_intro_9", + "phase": "intro" + }, + { + "id": "player_intro_9", + "name": "주인공", + "text": "이래서 감자 온도가 -99도, 아니 알려줘서 참으로 고맙다.", + "nextId": "fairy_intro_11", + "phase": "intro" + }, + { + "id": "fairy_intro_11", + "name": "냉장고 요정", + "text": "별 말씀을!", "nextId": "", "phase": "intro" }, @@ -73,14 +164,14 @@ { "id": "fairy_gameplay_3", "name": "냉장고 요정", - "text": "던전은 총 2스테이지까지 있으며 모두 클리어한다면...", + "text": "같은 스테이지를 3번이나 시도하면... 굉장한 일이 벌어지지.", "nextId": "player_gameplay_3", "phase": "gameplay" }, { "id": "player_gameplay_3", "name": "주인공", - "text": "한다면... 뭐지?", + "text": "(안좋은 일이겠지)", "nextId": "", "phase": "gameplay" }, @@ -195,6 +286,69 @@ "text": "그 날 서울시 어느 동네에서, 한 34세의 남성의 절규 소리가 울려퍼졌다.", "nextId": "", "phase": "zero" + }, + { + "id": "fairy_fail_1", + "name": "냉장고 요정", + "text": "...이야. \n같은 스테이지를 몇 번이나 도전하는 거야?", + "nextId": "player_fail_1", + "phase": "fail" + }, + { + "id": "player_fail_1", + "name": "주인공", + "text": "못 할 수도 있지...", + "nextId": "fairy_fail_2", + "phase": "fail" + }, + { + "id": "fairy_fail_2", + "name": "냉장고 요정", + "text": "음, 축하해!", + "nextId": "player_fail_2", + "phase": "fail" + }, + { + "id": "player_fail_2", + "name": "주인공", + "text": "(불안하다...)", + "nextId": "fairy_fail_3", + "phase": "fail" + }, + { + "id": "fairy_fail_3", + "name": "냉장고 요정", + "text": "던전이 제대로 잠재워지지 않아서 곧 세상은 멸망할 거야!", + "nextId": "player_fail_4", + "phase": "fail" + }, + { + "id": "player_fail_4", + "name": "주인공", + "text": "뭐?????", + "nextId": "fairy_fail_4", + "phase": "fail" + }, + { + "id": "fairy_fail_4", + "name": "냉장고 요정", + "text": "출근하기 싫다고 했지? 이제 안해도 돼!", + "nextId": "player_fail_5", + "phase": "fail" + }, + { + "id": "player_fail_5", + "name": "주인공", + "text": "안돼!!!!!!", + "nextId": "fairy_fail_5", + "phase": "fail" + }, + { + "id": "fairy_fail_5", + "name": " ", + "text": "그렇게 세상은 멸망했다. 끝.", + "nextId": "", + "phase": "fail" } ] } \ No newline at end of file From f9f964a1894e22840ae558ff9559b913d530a8d0 Mon Sep 17 00:00:00 2001 From: Sehyeon Date: Wed, 14 May 2025 11:16:18 +0900 Subject: [PATCH 3/8] =?UTF-8?q?DEG-162=20[Fix]=20=EC=B6=A9=EB=8F=8C?= =?UTF-8?q?=EA=B3=BC=20=EA=B0=90=EC=A7=80=20=EC=98=81=EC=97=AD=20=EC=A1=B0?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/KSH/ReHousing.unity | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/KSH/ReHousing.unity b/Assets/KSH/ReHousing.unity index 5515d1ac..cb0adc85 100644 --- a/Assets/KSH/ReHousing.unity +++ b/Assets/KSH/ReHousing.unity @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b78f0bfed1d3d148a76f0032abb0e6f41226b5c3f91b6ff6b24d30c8eadad8ee -size 49095 +oid sha256:6e9db94063763202228402f11b8da00c7d857151f07be37822e803f7b7538e11 +size 55239 From 0b4cc72996de53d42ab3db52f7c97d24997cdd85 Mon Sep 17 00:00:00 2001 From: fiore Date: Wed, 14 May 2025 11:26:36 +0900 Subject: [PATCH 4/8] =?UTF-8?q?[fix]=20=EB=8F=84=EB=A7=9D=EC=B9=98?= =?UTF-8?q?=EB=8A=94=20=EB=AA=AC=EC=8A=A4=ED=84=B0=EC=9D=98=20=EB=B0=9C?= =?UTF-8?q?=EB=B2=84=EB=91=A5=EC=9D=B4=20=EB=8D=94=20=EC=9E=90=EC=A3=BC=20?= =?UTF-8?q?=EB=B0=9C=EC=83=9D=ED=86=A0=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DEG-62 --- .../Scripts/Character/Enemy/EnemyState/Caster/EnemyStateFlee.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Character/Enemy/EnemyState/Caster/EnemyStateFlee.cs b/Assets/Scripts/Character/Enemy/EnemyState/Caster/EnemyStateFlee.cs index a8c88bd6..6e961c8c 100644 --- a/Assets/Scripts/Character/Enemy/EnemyState/Caster/EnemyStateFlee.cs +++ b/Assets/Scripts/Character/Enemy/EnemyState/Caster/EnemyStateFlee.cs @@ -119,7 +119,7 @@ public class EnemyStateFlee :IEnemyState private void HandleDeadEnd() { - if (_stuckCount >= 4) + if (_stuckCount >= 2) { _enemyController.OnCannotFleeBehaviour(() => { _stuckCount = 0;}); return; From 2dd70dff2b76b327b2f44e0f2a93b391ad959566 Mon Sep 17 00:00:00 2001 From: Sehyeon Date: Wed, 14 May 2025 11:48:58 +0900 Subject: [PATCH 5/8] =?UTF-8?q?DEG-169=20[Feat]=20=EA=B0=99=EC=9D=80=20?= =?UTF-8?q?=EC=8A=A4=ED=85=8C=EC=9D=B4=EC=A7=80=20=EC=8B=9C=EB=8F=84=20?= =?UTF-8?q?=EC=B4=88=EA=B3=BC=20=EC=97=94=EB=94=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/KSH/DungeonLogic.cs | 4 -- Assets/KSH/PlayerStats.cs | 6 +-- .../Common/Dialogue/ChatWindowController.cs | 5 ++- .../Common/Dialogue/FairyDialogueManager.cs | 6 ++- Assets/Scripts/Common/GameManager.cs | 10 +++++ .../Scripts/Common/GameUtility/EndingLogic.cs | 43 ++++--------------- 6 files changed, 29 insertions(+), 45 deletions(-) diff --git a/Assets/KSH/DungeonLogic.cs b/Assets/KSH/DungeonLogic.cs index 1bc28af7..ee321abf 100644 --- a/Assets/KSH/DungeonLogic.cs +++ b/Assets/KSH/DungeonLogic.cs @@ -15,10 +15,6 @@ public class DungeonLogic : MonoBehaviour private PlayerController _player; private EnemyController _enemy; - - // 던전 결과 이벤트 - public event Action OnDungeonSuccess; - public event Action OnDungeonFailure; private void Awake() { diff --git a/Assets/KSH/PlayerStats.cs b/Assets/KSH/PlayerStats.cs index ea614d58..435a86eb 100644 --- a/Assets/KSH/PlayerStats.cs +++ b/Assets/KSH/PlayerStats.cs @@ -50,6 +50,7 @@ public class PlayerStats : MonoBehaviour private SpeechBubbleFollower _speechBubbleFollower; private bool _isActiveBubble; private bool _hasShownBubbleToday; // 하루에 말풍선 하나만 표시하기 + private InteractionAnimationPanelController _interactionAnimation; // 상호작용 패널 Active 여부 확인 private int _mealCount; public int MealCount => _mealCount; @@ -142,8 +143,7 @@ public class PlayerStats : MonoBehaviour ShowBubble(); } } - - private InteractionAnimationPanelController _interactionAnimation; + public void SetInteractionPanelController(InteractionAnimationPanelController panelController) { _interactionAnimation = panelController; @@ -151,7 +151,7 @@ public class PlayerStats : MonoBehaviour public void ShowBubble() { - if (_interactionAnimation.IsPanelActive()) return; + if (_interactionAnimation != null && _interactionAnimation.IsPanelActive()) return; if(_isActiveBubble) _speechBubbleFollower.ShowMessage(); diff --git a/Assets/Scripts/Common/Dialogue/ChatWindowController.cs b/Assets/Scripts/Common/Dialogue/ChatWindowController.cs index 428cd556..8e4c61be 100644 --- a/Assets/Scripts/Common/Dialogue/ChatWindowController.cs +++ b/Assets/Scripts/Common/Dialogue/ChatWindowController.cs @@ -35,8 +35,9 @@ public enum GamePhase // 단계별로 출력되는 대화가 달라짐 { Intro, // 인트로 설명문 Gameplay, // 게임 진행 팁? 등 - End, // 엔딩 대화 - ZeroEnd + End, // 회고 엔딩 + ZeroEnd, // 평판 0 엔딩 + FailEnd // 같은 스테이지 3회 실패 엔딩 } public class ChatWindowController : MonoBehaviour, IPointerClickHandler diff --git a/Assets/Scripts/Common/Dialogue/FairyDialogueManager.cs b/Assets/Scripts/Common/Dialogue/FairyDialogueManager.cs index 65fc370e..ad16eb22 100644 --- a/Assets/Scripts/Common/Dialogue/FairyDialogueManager.cs +++ b/Assets/Scripts/Common/Dialogue/FairyDialogueManager.cs @@ -90,7 +90,11 @@ public class FairyDialogueManager else if (phase == GamePhase.ZeroEnd) { StartPhaseDialogue("zero"); - } + } + else if (phase == GamePhase.FailEnd) + { + StartPhaseDialogue("fail"); + } } // 단계별 시작 대화 찾기 및 시작 diff --git a/Assets/Scripts/Common/GameManager.cs b/Assets/Scripts/Common/GameManager.cs index 871d1795..f87bffd2 100644 --- a/Assets/Scripts/Common/GameManager.cs +++ b/Assets/Scripts/Common/GameManager.cs @@ -13,6 +13,9 @@ public partial class GameManager : Singleton private int stageLevel = 1; // 스테이지 정보 public int StageLevel => stageLevel; + + private int tryStageCount = 0; + public int TryStageCount => tryStageCount; // 날짜 변경 이벤트, 추후에 UI 상의 날짜를 변경할 때 사용 public event Action OnDayChanged; @@ -79,6 +82,7 @@ public partial class GameManager : Singleton public void ChangeToGameScene() { + tryStageCount++; // 던전 시도 횟수 증가 SceneManager.LoadScene("ReDungeon"); // 던전 Scene HandleSceneAudio("Dungeon"); } @@ -86,6 +90,12 @@ public partial class GameManager : Singleton public void ChangeToHomeScene() { SceneManager.LoadScene("ReHousing"); // Home Scene + + if (tryStageCount >= 3) // 엔딩 + { + FailEnd(); + } + HandleSceneAudio("Housing"); } diff --git a/Assets/Scripts/Common/GameUtility/EndingLogic.cs b/Assets/Scripts/Common/GameUtility/EndingLogic.cs index 8e77c8a8..9e144159 100644 --- a/Assets/Scripts/Common/GameUtility/EndingLogic.cs +++ b/Assets/Scripts/Common/GameUtility/EndingLogic.cs @@ -16,51 +16,24 @@ public partial class GameManager public void ClearStage() { + tryStageCount = 0; // 시도 횟수 초기화 stageLevel++; } - private void ZeroReputationEnd() + private void ZeroReputationEnd() // 평판 0 엔딩 { - // npc와의 대화 출력, Phase = zero StartNPCDialogue(GamePhase.ZeroEnd); } + + private void FailEnd() // 같은 스테이지 3회 도전 실패 엔딩 + { + StartNPCDialogue(GamePhase.FailEnd); + } - // 엔딩 관련 메서드. 7일차에 실행 + // 회고 엔딩. 7일차에 실행 private void TriggerTimeEnding() { // npc와의 마지막 대화 출력 StartNPCDialogue(GamePhase.End); - - // 플레이어 상태에 따라 엔딩 판별 - // EndingType endingType = DetermineEnding(); - - // 엔딩 타입에 따라 다른 씬이나 UI 표시 - /*switch (endingType) - { - case EndingType.Normal: - Debug.Log("던전 공략 성공"); - // TODO: 엔딩 관련 패널 띄우기 - break; - case EndingType.Bad: - Debug.Log("던전 공략 실패"); - - break; - case EndingType.Happy: - Debug.Log("던전 공략 성공과 훌륭한 평판 작"); - - break; - }*/ - } - - // 던전 스테이지와 평판 수치로 엔딩 판별 - private EndingType DetermineEnding() - { - if (stageLevel < GameConstants.maxStage) // 현재 스테이지 1 혹은 2 - return EndingType.Bad; - - if (PlayerStats.Instance.ReputationStat >= happyEndReputation) // 평판이 일정 수치 이상 - return EndingType.Happy; - - return EndingType.Normal; } } \ No newline at end of file From cb6f35d45f17260c0c60947455398d0f9d32d627 Mon Sep 17 00:00:00 2001 From: fiore Date: Wed, 14 May 2025 11:59:46 +0900 Subject: [PATCH 6/8] =?UTF-8?q?[fix]=20=EC=9E=A5=ED=8C=90=20=EB=A7=88?= =?UTF-8?q?=EB=B2=95=EC=9D=B4=20=EB=84=88=EB=AC=B4=20=EB=86=92=EC=9D=80=20?= =?UTF-8?q?=EA=B3=B3=EC=97=90=20=EC=9C=84=EC=B9=98=ED=95=98=EB=8D=98=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 장판 마법 위치 바닥으로 조정 - 슬로우 디버프 적용 안되던 이슈 수정 --- Assets/Scripts/Character/Enemy/CasterDemonController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Character/Enemy/CasterDemonController.cs b/Assets/Scripts/Character/Enemy/CasterDemonController.cs index 56c09c46..e1ea184e 100644 --- a/Assets/Scripts/Character/Enemy/CasterDemonController.cs +++ b/Assets/Scripts/Character/Enemy/CasterDemonController.cs @@ -281,14 +281,14 @@ public class CasterDemonController : EnemyController transform.LookAt(aimPosition); // 장판 생성과 세팅 - var fixedPos = new Vector3(aimPosition.x, aimPosition.y, aimPosition.z); + var fixedPos = new Vector3(aimPosition.x, transform.position.y, aimPosition.z); var warning = Instantiate(chariotWarning, fixedPos, Quaternion.identity).GetComponent(); warning.SetEffect(SlowFieldEffectData, () => { SetAnimation(Cast); SFXPlayer(slowFieldSound); - }, null); + }, null, DebuffType.Slow.ToString()); // 짧은 텀 후 끝내기 yield return Wait.For(1f); From c0e6264355a492be0bb4d37f2ba4f1aece965b40 Mon Sep 17 00:00:00 2001 From: Sehyeon Date: Wed, 14 May 2025 14:26:41 +0900 Subject: [PATCH 7/8] =?UTF-8?q?DEG-166=20[Fix]=20null=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=B2=B4=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/KSH/PlayerStats.cs | 12 +++++++----- Assets/Scripts/Common/GameManager.cs | 23 +++++++++++------------ 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Assets/KSH/PlayerStats.cs b/Assets/KSH/PlayerStats.cs index 435a86eb..3f23bcb1 100644 --- a/Assets/KSH/PlayerStats.cs +++ b/Assets/KSH/PlayerStats.cs @@ -296,11 +296,6 @@ public class PlayerStats : MonoBehaviour // 하루가 실제로 종료된 경우에만 이벤트 발생 if (isDayEnded) { - // 결근 관련 변수 초기화 - _hasWorkedToday = false; - _hasCheckedAbsenceToday = false; - _hasShownBubbleToday = false; - // 식사 횟수 초기화 _mealCount = 0; @@ -333,6 +328,13 @@ public class PlayerStats : MonoBehaviour { EndDay(time, actionType); } + + if (TimeStat >= 8.0f && TimeStat < 9.0f) + { + _hasWorkedToday = false; + _hasCheckedAbsenceToday = false; + _hasShownBubbleToday = false; + } CheckBubble(); } diff --git a/Assets/Scripts/Common/GameManager.cs b/Assets/Scripts/Common/GameManager.cs index f87bffd2..9cd6e33f 100644 --- a/Assets/Scripts/Common/GameManager.cs +++ b/Assets/Scripts/Common/GameManager.cs @@ -43,15 +43,18 @@ public partial class GameManager : Singleton public void StartNPCDialogue(GamePhase phase) // intro, gameplay, end 존재 { - if(chatWindowController == null) - SetChatWindowController(); - - chatWindowController.SetGamePhase(phase); + StartCoroutine(StartNPCDialogueCoroutine(phase)); } - private void SetChatWindowController() + private IEnumerator StartNPCDialogueCoroutine(GamePhase phase) { - chatWindowController = FindObjectOfType(); + if (chatWindowController == null) + { + yield return new WaitForSeconds(0.5f); // 씬 전환 대기 + chatWindowController = FindObjectOfType(); + } + + chatWindowController.SetGamePhase(phase); } #endregion @@ -90,13 +93,9 @@ public partial class GameManager : Singleton public void ChangeToHomeScene() { SceneManager.LoadScene("ReHousing"); // Home Scene - - if (tryStageCount >= 3) // 엔딩 - { - FailEnd(); - } - HandleSceneAudio("Housing"); + + if (tryStageCount >= 3) FailEnd(); // 엔딩 } // TODO: Open Setting Panel 등 Panel 처리 From 76799a9476ed94b432ea01a383f929f71a01c614 Mon Sep 17 00:00:00 2001 From: Sehyeon Date: Wed, 14 May 2025 14:34:15 +0900 Subject: [PATCH 8/8] =?UTF-8?q?DEG-166=20[ADD]=20=EB=8B=A4=EC=9D=B4?= =?UTF-8?q?=EB=A0=89=ED=8A=B8=20=EB=8C=80=ED=99=94=20=EC=8B=9C=EC=9E=91=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/LIN/Scripts/DailyRoutine/InteractionController.cs | 2 +- Assets/Scripts/Common/GameManager.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/LIN/Scripts/DailyRoutine/InteractionController.cs b/Assets/LIN/Scripts/DailyRoutine/InteractionController.cs index 28ec589e..951ad303 100644 --- a/Assets/LIN/Scripts/DailyRoutine/InteractionController.cs +++ b/Assets/LIN/Scripts/DailyRoutine/InteractionController.cs @@ -28,7 +28,7 @@ public class InteractionController : MonoBehaviour { housingCanvasController.ShowNpcInteractionButton(() => { - GameManager.Instance.StartNPCDialogue(GamePhase.Gameplay); + GameManager.Instance.DirectStartDialogue(); }); } diff --git a/Assets/Scripts/Common/GameManager.cs b/Assets/Scripts/Common/GameManager.cs index 9cd6e33f..b9f8f710 100644 --- a/Assets/Scripts/Common/GameManager.cs +++ b/Assets/Scripts/Common/GameManager.cs @@ -57,6 +57,12 @@ public partial class GameManager : Singleton chatWindowController.SetGamePhase(phase); } + public void DirectStartDialogue() + { + if (chatWindowController == null) chatWindowController = FindObjectOfType(); + chatWindowController.SetGamePhase(GamePhase.Gameplay); + } + #endregion //일시 정지