Added Start Menu, -Added CartSpawner, -Added Get Car Key Objective
This commit is contained in:
parent
f737955a88
commit
e7f50f7108
100 changed files with 5304 additions and 16 deletions
|
|
@ -14,6 +14,8 @@ public class MainMenuController : MonoBehaviour
|
|||
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
Cursor.visible = true;
|
||||
|
||||
Debug.Log("Main menu started — cursor should be visible.");
|
||||
}
|
||||
|
||||
public void StartGame()
|
||||
|
|
@ -21,10 +23,12 @@ public class MainMenuController : MonoBehaviour
|
|||
startMenuUI.SetActive(false);
|
||||
if (gameUI != null)
|
||||
gameUI.SetActive(true);
|
||||
Time.timeScale = 1f;
|
||||
|
||||
Time.timeScale = 1f;
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
Cursor.visible = false;
|
||||
|
||||
Debug.Log("Game started — cursor locked.");
|
||||
}
|
||||
|
||||
public void QuitGame()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue