Exemplo n.º 1
0
    void OnCreatureEvalScoreUpdateAckHandler(C2G.CreatureEvalScoreUpdate send, C2G.CreatureEvalScoreUpdateAck recv)
    {
        OnStarUpdateCallback(recv.avg_score, send.score);
        OnClose();

        Tooltip.Instance.ShowMessageKey("EvalScoreUpdate");
    }
Exemplo n.º 2
0
    public void OnClickConfirm()
    {
        if (my_score == 0)
        {
            Tooltip.Instance.ShowMessageKey("EvalScoreSelect");
            return;
        }

        C2G.CreatureEvalScoreUpdate packet = new C2G.CreatureEvalScoreUpdate();
        packet.creature_id = creature_id;
        packet.score       = my_score;

        Network.GameServer.JsonAsync <C2G.CreatureEvalScoreUpdate, C2G.CreatureEvalScoreUpdateAck>(packet, OnCreatureEvalScoreUpdateAckHandler);
    }