Ejemplo n.º 1
0
    /// <summary>
    /// Salva a pontuaçao do jogador
    /// </summary>
    /// <returns>RequestModel com todas informaçoes desse tipo de requisicao</returns>
    /// <param name="__score">Pontuaçao do jogador</param>
    /// <param name="__stage">A fase dessa pontuaçao</param>
    /// <param name="__timeSpent">Tempo gasto nessa fase</param>
    /// <param name="__coins">Quantidade de coins ganhos nessa fase</param>
    /// <param name="__stars">Quantidade de estrelas ganhas nessa fase</param>
    /// <param name="__callbackRequestCompleted">__callback request completed.</param>
    /// <param name="__callbackRequestError">__callback request error.</param>
    /// <param name="__callbackRequestStarted">__callback request started.</param>
    /// <param name="__callbackRequestFinalized">__callback request finalized.</param>
    public static SavePlayerScoreRM savePlayerScore(float __score,
                                                    int __stage,
                                                    int __timeSpent,
                                                    int __coins,
                                                    int __stars,
                                                    RequestHelper.RequestHandlerDelegate __callbackRequestCompleted = null,
                                                    RequestHelper.RequestHandlerDelegate __callbackRequestError     = null,
                                                    RequestHelper.RequestHandlerDelegate __callbackRequestStarted   = null,
                                                    RequestHelper.RequestHandlerDelegate __callbackRequestFinalized = null)
    {
        SavePlayerScoreRM request = new SavePlayerScoreRM();

        request.cvo.setupParameters(__score, __stage, __timeSpent, __coins, __stars);
        setupRequest(request, __callbackRequestCompleted, __callbackRequestError, __callbackRequestStarted, __callbackRequestFinalized);
        return(request);
    }
        void OnSavePlayerScoreRequestSuccess(BaseRequestModel request)
        {
            SavePlayerScoreRM r = request as SavePlayerScoreRM;

            DebugConsole.Append("OnSavePlayerScoreRequestSuccess called  :: obj received: " + r.svo.jsonReceived);
        }
Ejemplo n.º 3
0
 void OnSavePlayerScoreRequestSuccess(BaseRequestModel request)
 {
     SavePlayerScoreRM r = request as SavePlayerScoreRM;
     //Debug.Log("OnSavePlayerScoreRequestSuccess called  :: obj received: " + r.svo.jsonReceived);
 }