Beispiel #1
0
 void emptyDataKlaus()
 {
     if (dataKlaus == null)
     {
         dataKlaus = new KlausData();
         dataKlaus.CreateLevels();
         LoadRanksFromServer();
     }
 }
Beispiel #2
0
    void Awake()
    {
        Screen.SetResolution(800, 600, false);
        DontDestroyOnLoad(this);

        if (RankingManager.Instance != null)
        {
            RankingManager.Instance.OnOwnRankObtanied += LoadedOwnRank;
        }

        if (dataKlaus != null)
        {
            dataKlaus.CreateLevels();
            LoadRanksFromServer();
        }

        CreateDataKlaus();
    }