Пример #1
0
    public void DoLogin(string eMail, string pwd)
    {
        mLoginInfo             = new LoginInfo();
        mLoginInfo.memberEmail = eMail;
        mLoginInfo.memberName  = "";
        mLoginInfo.memberPwd   = pwd;
        mLoginEvent            = new LoginEvent(new EventDelegate(this, "LoginComplete"));
//		UtilMgr.ShowLoading (true);

        PlayerPrefs.SetString(Constants.PrefEmail, eMail);
        PlayerPrefs.SetString(Constants.PrefPwd, pwd);

        if (Application.platform == RuntimePlatform.Android)
        {
            AndroidMgr.RegistGCM(new EventDelegate(this, "SetGCMId"));
        }
        else if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
        }
        else if (Application.platform == RuntimePlatform.OSXEditor)
        {
            mLoginInfo.memUID = "";
            NetMgr.DoLogin(mLoginInfo, mLoginEvent);
        }
    }
Пример #2
0
 public void SetGCMId()
 {
     mLoginInfo.memUID = AndroidMgr.GetMsg();
     NetMgr.DoLogin(mLoginInfo, mLoginEvent);
 }