Compare commits
No commits in common. "cc804ae625339236853d191f11d225481e24d49b" and "41e047be403707b02e5673d11b01cd83a7f80fbf" have entirely different histories.
cc804ae625
...
41e047be40
BIN
Assets/KSH/ReHousing.unity
(Stored with Git LFS)
BIN
Assets/KSH/ReHousing.unity
(Stored with Git LFS)
Binary file not shown.
@ -139,7 +139,5 @@ public class TutorialManager : MonoBehaviour
|
|||||||
return;
|
return;
|
||||||
Destroy(_tutorialPanelObject);
|
Destroy(_tutorialPanelObject);
|
||||||
_tutorialPanelController = null;
|
_tutorialPanelController = null;
|
||||||
|
|
||||||
PlayerPrefsManager.SetIsNewStart(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -8,8 +8,7 @@ public class MainUIPanelController : MonoBehaviour
|
|||||||
|
|
||||||
public void OnClickStartButton()
|
public void OnClickStartButton()
|
||||||
{
|
{
|
||||||
var isNewStart = PlayerPrefsManager.GetIsNewStart();
|
GameManager.Instance.ChangeToHomeScene(true);
|
||||||
GameManager.Instance.ChangeToHomeScene(isNewStart);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnClickSettingsButton()
|
public void OnClickSettingsButton()
|
||||||
|
@ -28,15 +28,4 @@ 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(4f); // 씬 전환 대기
|
yield return new WaitForSeconds(0.5f); // 씬 전환 대기
|
||||||
chatWindowController = FindObjectOfType<ChatWindowController>();
|
chatWindowController = FindObjectOfType<ChatWindowController>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user