예제 #1
0
    /// <summary>
    /// 登陆
    /// </summary>
    public void LoginAgain()
    {
        string        userName    = GameDataMgr.LOGIN_DATA.lastLoginAccount;
        string        userPwd     = GameDataMgr.LOGIN_DATA.lastLoginPassword;
        EngineManager engine      = EngineManager.GetInstance();
        string        _apn        = engine.GetAPNType();
        string        _mac        = engine.GetMac();
        string        _model      = engine.GetModel();
        int           _channel    = engine.GetChannel();
        int           _subChanner = engine.GetSubChannel();
        int           _sdkId      = engine.GetSDKId();

        UtilTools.ShowWaitWin(WaitFlag.LoginFirst);
        Login(userName, userPwd, _apn, _mac, _model, _channel, _subChanner, _sdkId);
    }
예제 #2
0
    public void Login(string name, string passWord)
    {
        UIManager.CreateLuaWin(UIName.MAIN_CENTER_WIN);
//        UIManager.CreateLuaWin(UIName.MAIN_WIN);
        GameDataMgr.LOGIN_DATA.userName     = name;
        GameDataMgr.LOGIN_DATA.userPassword = passWord;
        _playerLoginName     = name;
        _playerLoginPassWard = passWord;

//        GameDataMgr.LOGIN_DATA.IsChangeAccountLogin = false;
        string        userPwd     = GameDataMgr.LOGIN_DATA.userPassword;
        EngineManager engine      = EngineManager.GetInstance();
        string        _apn        = engine.GetAPNType();
        string        _mac        = engine.GetMac();
        string        _model      = engine.GetModel();
        int           _channel    = engine.GetChannel();
        int           _subChanner = engine.GetSubChannel();
        int           _sdkId      = engine.GetSDKId();

        //        RequestServerInfo();
        Login(name, userPwd, _apn, _mac, _model, _channel, _subChanner, _sdkId);
//        UIManager.DestroyWin(sName);
    }