/* * ------------------------------------------------------------------------ * Description: This class handles start and end game screens * Author: Eli Simpkins-Simmonds * ------------------------------------------------------------------------ */ using UnityEngine; public class GameController : MonoBehaviour { public GameObject startScreenPanel; public GameObject endScreenPanel; void Start() { // Set initial states of the panels startScreenPanel.SetActive(true); endScreenPanel.SetActive(false); } public void StartGame() { // Hide the start screen panel startScreenPanel.SetActive(false); // Additional logic to start the game, e.g., enabling player controls } public void EndGame() { // Shows the end screen panel endScreenPanel.SetActive(true); } }