using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class GameManager: Singleton { public int Score { get; private set; } [SerializeField] private string startScene = "Main Scene"; // Start is called before the first frame update protected virtual void Start() { if (SceneManager.GetActiveScene().name != startScene) SceneManager.LoadScene(startScene); } // Update is called once per frame void Update() { } public void ScorePoints(int points) { Score += points; Debug.Log("Current Score: " + Score); } }