squash commits
This commit is contained in:
@@ -8,7 +8,7 @@ public class GameManager : MonoBehaviour
|
||||
private UISystem _uiSystem;
|
||||
|
||||
|
||||
private bool _isPause;
|
||||
private bool _isPause = true;
|
||||
private InputSystem _inputSystem;
|
||||
private SceneManager _sceneManager;
|
||||
private TimeSystem _timeSystem;
|
||||
@@ -38,7 +38,22 @@ public class GameManager : MonoBehaviour
|
||||
_timeSystem = new TimeSystem();
|
||||
_gameMouseHandler = new InGameMouseHandler(_cameraSystem.MainCamera);
|
||||
}
|
||||
CreateCharacter();
|
||||
}
|
||||
|
||||
public void CreateCharacter()
|
||||
{
|
||||
UI.enabled = false;
|
||||
}
|
||||
|
||||
public void StartGame()
|
||||
{
|
||||
Resume();
|
||||
UI.enabled = true;
|
||||
_cameraSystem.StartGame();
|
||||
Instance.Scene.Change("City");
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
Instance._inputSystem?.Enable();
|
||||
@@ -59,6 +74,7 @@ public class GameManager : MonoBehaviour
|
||||
Instance._isPause = false;
|
||||
}
|
||||
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (!Instance._isPause)
|
||||
|
||||
Reference in New Issue
Block a user