Пример #1
0
    public void Load()
    {
        Screen.sleepTimeout = SleepTimeout.NeverSleep;

        if (DataManager.isLocalTestMode || Application.internetReachability == NetworkReachability.NotReachable)
        {
            DataManager.LocalLoad();
            LevelsManager.LoadStartMenuStatic();
            return;
        }

        InitializeServices();

        GooglePlayAuth((succes) =>
        {
            FirestoreAuth(task =>
            {
                if (task.IsCompleted)
                {
                    FirestoreManager.SendRecord(null);
                }
            });

            LoadSaves();
        });

        StartCoroutine(LoadStartMenu());
    }
Пример #2
0
    private IEnumerator LoadStartMenu()
    {
        while (!adsIsReady || !purchasesIsReady || !firebaseIsReady || !savesIsReady)
        {
            yield return(null);
        }

        LevelsManager.LoadStartMenuStatic();
    }