private void Awake() { if (singlePlayerValues != null) { Destroy(singlePlayerValues); } else { singlePlayerValues = this; DontDestroyOnLoad(singlePlayerValues); } }
private void GlobalLoad() { Debug.Log("Load global"); extractedOresCounter.LoadOres(LoadSystem.Load <ExtractedOresData>("extractedOres")); SinglePlayerValues.LoadData(LoadSystem.Load <PlayerValuesData>("playerValues")); GameManager.LoadIndex(LoadSystem.Load <GameManagerData>("gameManager")); Statistics.LoadData(LoadSystem.Load <StatisticsData>("statistics")); AwakeningUpgradeController.LoadData(LoadSystem .Load <AwakeningUpgradeData>("awakeningUpgrades")); }