Skip to content

Commit

Permalink
Try to fix bug (#190)
Browse files Browse the repository at this point in the history
* 중간저장

* 튜토리얼모드 진입 성공

- TutorialCrew 소환 성공
- UI_CrewTutorial 소환 성공

* 튜토리얼 완성

* 설정 수정

* 마무리

* Try to fix bug.
  • Loading branch information
helloSalmon authored Jul 5, 2024
1 parent a122e2c commit baaac32
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Client/Assets/Scripts/Scenes/GameScene.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GameScene : BaseScene
{
Expand Down Expand Up @@ -34,19 +35,22 @@ public override IEnumerator OnPlayerSpawn()
gameEndSystem.Init();
//UI_Ingame ingameUI = Managers.ObjectMng.MyCreature is Crew ? Managers.UIMng.ShowSceneUI<UI_CrewIngame>() : Managers.UIMng.ShowSceneUI<UI_AlienIngame>();
UI_Ingame ingameUI = null;
switch(Managers.NetworkMng.Creature)
switch(Managers.ObjectMng.MyCreature)
{
case Define.CreatureType.Crew:
ingameUI = Managers.UIMng.ShowSceneUI<UI_CrewIngame>();
case Crew:
if (SceneManager.GetActiveScene().name == "TutorialScene")
{
ingameUI = Managers.UIMng.ShowSceneUI<UI_CrewTutorial>();
}
else
{
ingameUI = Managers.UIMng.ShowSceneUI<UI_CrewIngame>();
}
break;

case Define.CreatureType.Alien:
case Alien:
ingameUI = Managers.UIMng.ShowSceneUI<UI_AlienIngame>();
break;

case Define.CreatureType.TutoCrew:
ingameUI = Managers.UIMng.ShowSceneUI<UI_CrewTutorial>();
break;
}
yield return new WaitUntil(() => ingameUI.Init());

Expand Down

0 comments on commit baaac32

Please sign in to comment.