DEG-180 [feat] 튜토리얼 실행 제어
This commit is contained in:
parent
41e047be40
commit
9a74078b34
BIN
Assets/KSH/ReHousing.unity
(Stored with Git LFS)
BIN
Assets/KSH/ReHousing.unity
(Stored with Git LFS)
Binary file not shown.
@ -139,5 +139,7 @@ public class TutorialManager : MonoBehaviour
|
|||||||
return;
|
return;
|
||||||
Destroy(_tutorialPanelObject);
|
Destroy(_tutorialPanelObject);
|
||||||
_tutorialPanelController = null;
|
_tutorialPanelController = null;
|
||||||
|
|
||||||
|
PlayerPrefsManager.SetIsNewStart(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -8,7 +8,8 @@ public class MainUIPanelController : MonoBehaviour
|
|||||||
|
|
||||||
public void OnClickStartButton()
|
public void OnClickStartButton()
|
||||||
{
|
{
|
||||||
GameManager.Instance.ChangeToHomeScene(true);
|
var isNewStart = PlayerPrefsManager.GetIsNewStart();
|
||||||
|
GameManager.Instance.ChangeToHomeScene(isNewStart);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnClickSettingsButton()
|
public void OnClickSettingsButton()
|
||||||
|
@ -28,4 +28,15 @@ public static class PlayerPrefsManager
|
|||||||
var bgmIsActive = PlayerPrefs.GetInt("BGMIsActive", 1) == 1;
|
var bgmIsActive = PlayerPrefs.GetInt("BGMIsActive", 1) == 1;
|
||||||
return (sfxVolume, bgmVolume, sfxIsActive, bgmIsActive);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ public partial class GameManager : Singleton<GameManager>,ISaveable
|
|||||||
{
|
{
|
||||||
if (chatWindowController == null)
|
if (chatWindowController == null)
|
||||||
{
|
{
|
||||||
yield return new WaitForSeconds(0.5f); // 씬 전환 대기
|
yield return new WaitForSeconds(4f); // 씬 전환 대기
|
||||||
chatWindowController = FindObjectOfType<ChatWindowController>();
|
chatWindowController = FindObjectOfType<ChatWindowController>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user