Exemplo n.º 1
0
 private void Awake()
 {
     if (singlePlayerValues != null)
     {
         Destroy(singlePlayerValues);
     }
     else
     {
         singlePlayerValues = this;
         DontDestroyOnLoad(singlePlayerValues);
     }
 }
Exemplo n.º 2
0
    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"));
    }