DEG-180 [feat] 튜토리얼 실행 제어

This commit is contained in:
Lim0_C 2025-05-15 11:12:27 +09:00
parent 41e047be40
commit 9a74078b34
5 changed files with 18 additions and 4 deletions

BIN
Assets/KSH/ReHousing.unity (Stored with Git LFS)

Binary file not shown.

View File

@ -139,5 +139,7 @@ public class TutorialManager : MonoBehaviour
return;
Destroy(_tutorialPanelObject);
_tutorialPanelController = null;
PlayerPrefsManager.SetIsNewStart(false);
}
}

View File

@ -8,7 +8,8 @@ public class MainUIPanelController : MonoBehaviour
public void OnClickStartButton()
{
GameManager.Instance.ChangeToHomeScene(true);
var isNewStart = PlayerPrefsManager.GetIsNewStart();
GameManager.Instance.ChangeToHomeScene(isNewStart);
}
public void OnClickSettingsButton()

View File

@ -28,4 +28,15 @@ public static class PlayerPrefsManager
var bgmIsActive = PlayerPrefs.GetInt("BGMIsActive", 1) == 1;
return (sfxVolume, bgmVolume, sfxIsActive, bgmIsActive);
}
public static void SetIsNewStart(bool isNewStart)
{
PlayerPrefs.SetInt("IsNewStart", isNewStart ? 1 : 0);
PlayerPrefs.Save();
}
public static bool GetIsNewStart()
{
return PlayerPrefs.GetInt("IsNewStart", 1) == 1;
}
}

View File

@ -48,7 +48,7 @@ public partial class GameManager : Singleton<GameManager>,ISaveable
{
if (chatWindowController == null)
{
yield return new WaitForSeconds(0.5f); // 씬 전환 대기
yield return new WaitForSeconds(4f); // 씬 전환 대기
chatWindowController = FindObjectOfType<ChatWindowController>();
}