Esempio n. 1
0
    void HandleReturnedMessage(int packetNum, byte[] data)
    {
        //Send  the Message for the Sever back to the Unity Console
        int packetnum;

        FLI.ByteBuffer buffer = new FLI.ByteBuffer();
        buffer.WriteBytes(data);
        packetnum = buffer.ReadInt();
        String mes = buffer.ReadString();

        //Send to Unity console for now
        Debug.Log(mes);
        alert.text = mes;

        Debug.Log("Loading...");
        Thread.Sleep(1);



        LoginCtrl lc = new LoginCtrl();

        if (mes == "Access Granted!")
        {
            lc.loadMainMenu();
        }
    }