Пример #1
0
        /// <summary>
        ///  Begins creating an IUnityEnlearnClient associated with this instance.
        /// </summary>
        public void CreateClient(string gameId)
        {
            var logger = new UnityLogger();

#if UNITY_ANDROID
            _enlearnClient = new JavaBackedEnlearnClient(this, gameId, logger, () => { _isClientReady = true; Debug.Log("UnityEnlearnClient is now Ready!"); });
#endif
        }
Пример #2
0
    private IEnumerator CreateClientRoutine()
    {
        Logger.Log("Initializing Enlearn client...");
        m_ClientBuilder.CreateClient(BundleInfo.Identifier);
        while (!m_ClientBuilder.IsClientReady())
        {
            yield return(0.1f);
        }
        Logger.Log("Enlearn client is ready!");
        m_Client = m_ClientBuilder.GetEnlearnClient();

        if (m_StudentInfo != null)
        {
            QueueCall(CallType.UpdateStudentInfo, m_StudentInfo, true, 2.0f);
        }
    }