예제 #1
0
        //---------------------------------------------------------------------
        // 保存登录游客信息
        public void SaveLoginGuestInfo(LoginGuestInfo login_guestinfo)
        {
            LoginGuestInfo = login_guestinfo;

            //string s = EbTool.jsonSerialize(LoginGuestInfo);
            //PlayerPrefs.SetString(KeyLoginGuestInfo, s);
        }
예제 #2
0
        //---------------------------------------------------------------------
        // 加载登录游客信息
        public LoginGuestInfo LoadLoginGuestInfo()
        {
            if (PlayerPrefs.HasKey(KeyLoginGuestInfo))
            {
                string s = PlayerPrefs.GetString(KeyLoginGuestInfo);
                LoginGuestInfo = EbTool.jsonDeserialize <LoginGuestInfo>(s);
            }
            else
            {
                LoginGuestInfo = new LoginGuestInfo();
            }

            return(LoginGuestInfo);
        }