From baaac32b9be203b267515dc05a413cdef18880c4 Mon Sep 17 00:00:00 2001 From: helloSalmon <94889770+helloSalmon@users.noreply.github.com> Date: Fri, 5 Jul 2024 22:18:03 +0900 Subject: [PATCH] Try to fix bug (#190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 중간저장 * 튜토리얼모드 진입 성공 - TutorialCrew 소환 성공 - UI_CrewTutorial 소환 성공 * 튜토리얼 완성 * 설정 수정 * 마무리 * Try to fix bug. --- Client/Assets/Scripts/Scenes/GameScene.cs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Client/Assets/Scripts/Scenes/GameScene.cs b/Client/Assets/Scripts/Scenes/GameScene.cs index 2f681cc3c9..12bdf50f7b 100644 --- a/Client/Assets/Scripts/Scenes/GameScene.cs +++ b/Client/Assets/Scripts/Scenes/GameScene.cs @@ -1,5 +1,6 @@ using System.Collections; using UnityEngine; +using UnityEngine.SceneManagement; public class GameScene : BaseScene { @@ -34,19 +35,22 @@ public override IEnumerator OnPlayerSpawn() gameEndSystem.Init(); //UI_Ingame ingameUI = Managers.ObjectMng.MyCreature is Crew ? Managers.UIMng.ShowSceneUI() : Managers.UIMng.ShowSceneUI(); UI_Ingame ingameUI = null; - switch(Managers.NetworkMng.Creature) + switch(Managers.ObjectMng.MyCreature) { - case Define.CreatureType.Crew: - ingameUI = Managers.UIMng.ShowSceneUI(); + case Crew: + if (SceneManager.GetActiveScene().name == "TutorialScene") + { + ingameUI = Managers.UIMng.ShowSceneUI(); + } + else + { + ingameUI = Managers.UIMng.ShowSceneUI(); + } break; - case Define.CreatureType.Alien: + case Alien: ingameUI = Managers.UIMng.ShowSceneUI(); break; - - case Define.CreatureType.TutoCrew: - ingameUI = Managers.UIMng.ShowSceneUI(); - break; } yield return new WaitUntil(() => ingameUI.Init());