diff --git a/Assets/KSH/ReHousing.unity b/Assets/KSH/ReHousing.unity index 1631d7aa..e6fef1bb 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:235ac1c229bb2ae87676def6f645666b2638d869ebc47609fe8e402e9f1f72e8 -size 55371 +oid sha256:eca58836df63a0c4c8fa89c85e46e1e355b84f25e0cdca06017b09b77bd82b9d +size 57881 diff --git a/Assets/LIN/Scripts/Tutorial/TutorialManager.cs b/Assets/LIN/Scripts/Tutorial/TutorialManager.cs index 5546e9d7..889adc3b 100644 --- a/Assets/LIN/Scripts/Tutorial/TutorialManager.cs +++ b/Assets/LIN/Scripts/Tutorial/TutorialManager.cs @@ -139,5 +139,7 @@ public class TutorialManager : MonoBehaviour return; Destroy(_tutorialPanelObject); _tutorialPanelController = null; + + PlayerPrefsManager.SetIsNewStart(false); } } \ No newline at end of file diff --git a/Assets/LYM/Scripts/MainUIPanelController.cs b/Assets/LYM/Scripts/MainUIPanelController.cs index ddaf0f3e..dcbdc81f 100644 --- a/Assets/LYM/Scripts/MainUIPanelController.cs +++ b/Assets/LYM/Scripts/MainUIPanelController.cs @@ -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() diff --git a/Assets/LYM/Scripts/PlayerPrefsManager.cs b/Assets/LYM/Scripts/PlayerPrefsManager.cs index 04676545..608dc110 100644 --- a/Assets/LYM/Scripts/PlayerPrefsManager.cs +++ b/Assets/LYM/Scripts/PlayerPrefsManager.cs @@ -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; + } } diff --git a/Assets/Scripts/Common/GameManager.cs b/Assets/Scripts/Common/GameManager.cs index 8b76d58a..e692cf6a 100644 --- a/Assets/Scripts/Common/GameManager.cs +++ b/Assets/Scripts/Common/GameManager.cs @@ -48,7 +48,7 @@ public partial class GameManager : Singleton,ISaveable { if (chatWindowController == null) { - yield return new WaitForSeconds(0.5f); // 씬 전환 대기 + yield return new WaitForSeconds(4f); // 씬 전환 대기 chatWindowController = FindObjectOfType(); }