Пример #1
0
        // Methods

        public static SubGoalManager GetInstance()
        {
            if (_instance == null)
            {
                _instance = new SubGoalManager();
            }

            return(_instance);
        }
Пример #2
0
 /// <summary>
 /// Basically reset the whole game, including object positions and states aswell as accumulated points and timers
 /// </summary>
 public void ResetLevel()
 {
     SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     SubGoalManager.GetInstance().Reset();
 }