Added Start Menu, -Added CartSpawner, -Added Get Car Key Objective

This commit is contained in:
apolloxyx 2025-05-08 22:17:04 -04:00
parent f737955a88
commit e7f50f7108
100 changed files with 5304 additions and 16 deletions

View file

@ -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()