Esempio n. 1
0
        public void OnSuccess_Authenticate(string responseData, object cbObject)
        {
            AppendLog("Authenticate successful!");

            // enable the HUD if it's kicking around
            Object o = FindObjectOfType(typeof(BrainCloudHUD));

            if (o)
            {
                BrainCloudHUD hud = (BrainCloudHUD)o;
                hud.EnableUI = true;
            }
            if (m_authSuccessLevel != null && m_authSuccessLevel.Length > 0)
            {
                Application.LoadLevel(m_authSuccessLevel);
            }
        }
Esempio n. 2
0
        public void OnSuccess_Authenticate(string responseData, object cbObject)
        {
            AppendLog("Authenticate successful!");

            // enable the HUD if it's kicking around
            Object o = FindObjectOfType(typeof(BrainCloudHUD));

            if (o)
            {
                BrainCloudHUD hud = (BrainCloudHUD)o;
                hud.EnableUI  = true;
                hud.Minimized = false;
            }
            if (m_authSuccessLevel != null && m_authSuccessLevel.Length > 0)
            {
#if UNITY_5_3_OR_NEWER
                SceneManager.LoadScene(m_authSuccessLevel);
#else
                Application.LoadLevel(m_authSuccessLevel);
#endif
            }
        }