Exemple #1
0
    public void Upgrade(string strUpgradeType)
    {
        JSONObject    jsonUser      = null;
        HTTPClient    client        = null;
        UserSingleton userSingleton = null;

        client        = HTTPClient.GetInstance();
        jsonUser      = new JSONObject();
        userSingleton = UserSingleton.GetInstance();

        jsonUser.Add("UserID", userSingleton.m_nUserID);
        jsonUser.Add("UpgradeType", strUpgradeType);

        Debug.Log("jsonUser : "******"/Upgrade/Execute", jsonUser.ToString(), UpgradeDelegate);
    }
Exemple #2
0
    private void SaveGainPoint()
    {
        JSONObject    objData   = null;
        UserSingleton singleton = null;

        objData   = new JSONObject();
        singleton = UserSingleton.GetInstance();

        objData.Add("UserID", singleton.m_nUserID);
        objData.Add("AddPoint", m_nStagePoint);

        Debug.Log("Data : " + objData.ToString());

        HTTPClient.GetInstance().POST
        (
            string.Format("{0}/Upgrade/AddPoint", singleton.GetServerDomain()),
            objData.ToString(),
            GainPointWithFinished
        );

        singleton.m_nUserScore = m_nStagePoint;

        Debug.Log("SavePoint!");
    }