コード例 #1
0
        //! Launches coroutine to load a new game denoted by the given game ID paramter
        private IEnumerator LoadGame(string gameId)
        {
            //Debug.Log("Launch Game: " + gameId);
            yield return(new WaitForSeconds(0.5f));

            //Application.OpenURL(gameId + APP_URL_SUFFIX);
            GameInterface.launchGameForUrl(gameId + APP_URL_SUFFIX);

            if (null != OnDocentGameLoad)
            {
                OnDocentGameLoad(gameId);
            }

            // StopAllCoroutines();
            StopCoroutine("LoadGame");
        }