Beispiel #1
0
    public void OnReceiveQuizClear(int node, byte[] data)
    {
        Debug.Log("received quiz Clear");
        QuizClearPacket packet = new QuizClearPacket(data);

        QuizClear clear = packet.GetPacket();
        string    name  = clear.QuizName;

        ClearQuiz(name);
    }
Beispiel #2
0
    public void SendQuizResult(string name)
    {
        QuizClear clear = new QuizClear();

        clear.QuizName = name;
        clear.length   = name.Length;
        QuizClearPacket packet = new QuizClearPacket(clear);


        m_client.SendReliable(0, packet);

        QuizClear quizclear = packet.GetPacket();



        Debug.Log("send suceess");
    }