protected override void OnDestroy()
 {
     base.OnDestroy();
     if (m_initState)
     {
         int ret = MSCDLL.MSPLogout();
         Debug.Log("MSPLogout : " + ret);
     }
 }
        public override void Init()
        {
            int errorCode = (int)Errors.MSP_SUCCESS;

            /* 用户登录 */
            errorCode = MSCDLL.MSPLogin(null, null, InitInfo); //第一个参数是用户名,第二个参数是密码,均传NULL即可,第三个参数是登录参数
            if ((int)Errors.MSP_SUCCESS != errorCode)
            {
                OnError(string.Format("MSPLogin failed , Error code {0}", errorCode));
                MSCDLL.MSPLogout(); //退出登录
                m_initState = false;
                return;
            }

            Debug.Log("Init Succ");
            m_initState = true;
        }