/* * If you like my work, and found it useful * Please donate * Bitcoin Address: 1LdyAQHXdFVqzGzah45sGKhsQ8wDE6jyci * Good luck and enjoy. * */ namespace Assets.Scripts.Managers { public class GameManager { private static GameManager _instance; public static GameManager Instance { get { if (_instance == null) { _instance = new GameManager(); } return _instance; } } //add variables you want to keep track of here // get and set variables in other classes with GameManager.Instance. private GameManager() { } } }