void emptyDataKlaus() { if (dataKlaus == null) { dataKlaus = new KlausData(); dataKlaus.CreateLevels(); LoadRanksFromServer(); } }
void Awake() { Screen.SetResolution(800, 600, false); DontDestroyOnLoad(this); if (RankingManager.Instance != null) { RankingManager.Instance.OnOwnRankObtanied += LoadedOwnRank; } if (dataKlaus != null) { dataKlaus.CreateLevels(); LoadRanksFromServer(); } CreateDataKlaus(); }