Senseix.SenseixSession.LimitedInitializeSenseix C# (CSharp) 메소드

LimitedInitializeSenseix() 공개 정적인 메소드

public static LimitedInitializeSenseix ( string newAccessToken ) : IEnumerator
newAccessToken string
리턴 IEnumerator
        public static IEnumerator LimitedInitializeSenseix(string newAccessToken)
        {
            if (isInitializing)
            {
                Logger.BasicLog("already initializing");
                yield break;
            }
            isInitializing = true;

            yield return GetSingletonInstance().StartCoroutine(WaitForWebGLInitializing());

            SetSessionState (true);

            accessToken = newAccessToken;
            if (CheckAccessToken() == -1)
            {
                throw new Exception("The Thinksy Token you have provided is not of a valid length, please" +
                                    " register at https://developer.thinksylearn.com/ to create a valid key.  Then, fill " +
                                    "in the Game Access Token field of the ThinksyPlugin script on the Thinksy Prefab." +
                                    "  You can also test offline by checking the testing mode boolean on the Thinksy Prefab.");
            }

            //Creates a temporary account based on device id
            //returns an auth token. This is Syncronous.
            //Debug.Log("registering device");
            yield return GetSingletonInstance().StartCoroutine(RegisterDevice ());

            //Debug.Log ("listing players");
            yield return GetSingletonInstance().StartCoroutine(ListPlayers ());

            //Debug.Log("register all players");
            yield return GetSingletonInstance().StartCoroutine(RegisterAllPlayers ());

            EndInitialize ();
        }