コード例 #1
0
        /// <summary>
        /// 用户登陆
        /// </summary>
        /// <param name="loginType">Login type.</param>
        /// <param name="account">Account.</param>
        /// <param name="password">Password.</param>
        /// <param name="facebookAccessToken">Facebook access token.</param>
        /// <param name="timeout">Timeout.</param>
        public static void OpLogin(PVP.LoginType loginType, string account = "", string password = "", string facebookAccessToken = "", float timeout = 5)
        {
            PVPGlobal.isLogined = false;

            PVP.ICM.internetClient.Login(loginType, account, password, facebookAccessToken, timeout);

            if (PVPGlobal.handlerRegister.lockSocketEventHandler != null)
            {
                PVPGlobal.handlerRegister.lockSocketEventHandler();
            }
        }
コード例 #2
0
ファイル: User.cs プロジェクト: y378076136/PoolGame-template
 public User(PVPProtobuf_Token.User_LoginOrRegister_Response userInfo)
 {
     this.uid = userInfo.uid;
     this.name = userInfo.name;
     this.loginType = (PVP.LoginType)userInfo.login_type;
 }
コード例 #3
0
 public User(PVPProtobuf_Token.User_LoginOrRegister_Response userInfo)
 {
     this.uid       = userInfo.uid;
     this.name      = userInfo.name;
     this.loginType = (PVP.LoginType)userInfo.login_type;
 }