Ejemplo n.º 1
0
        private IEnumerator InitMain()
        {
            if (TestAndroidPermission())
            {
                GlobalGamePermissionTipDialog.SetActive(true);

                yield return(new WaitUntil(() => GlobalGamePermissionTipDialogClosed));
            }

            if (ShowUserArgeement())
            {
                yield return(new WaitUntil(() => GlobalGameUserAgreementTipDialogClosed));
            }

            GameLogger.InitLogger();
            GameManager.Mode         = GameMode;
            GameManager.GameRoot     = GameRoot;
            GameManager.GameCanvas   = GameCanvas;
            GameManager.GamePrefab   = GamePrefab;
            GameManager.GameAssets   = GameAssets;
            GameManager.BreakAtStart = BreakAtStart;
            GameManager.UIRoot       = UIRoot;

            StartCoroutine(GameManager.Init());
        }