Exemple #1
0
        public override void OnLoggedIn()
        {
            var    user       = Hub.LoginManager.LocalUser;
            string serverid   = user.WorldId.ToString();
            string servername = string.Empty;
            string roleid     = user.Id.Value.ToString();
            string rolename   = user.Name;
            int    rolelevel  = user.Level;
            string extend     = "login role";

            //EB.Debug.LogError("unityTest OnLoggedIn collectData");
            EWanGameSdk.collectData(serverid, servername, roleid, rolename, rolelevel, extend);
        }
Exemple #2
0
        public void OnInitResult(int code, string msg)
        {
            EB.Debug.Log("OnInitResult:code={0} msg={1}", code, msg);

            mInitializing       = false;
            Hub.RunInBackground = false;

            mInitialized = true;

            if (mInitCallback != null)
            {
                mInitCallback(null, mInitialized);
                mInitCallback = null;
            }
            //EB.Debug.LogError("unityTest OnInitResult collectData");
            EWanGameSdk.collectData("1", "servername", "roleid", "rolename", 1, "create role");
        }