Ejemplo n.º 1
0
    //--------------------------------------
    //  PUBLIC METHODS
    //--------------------------------------
    //--------------------------------------
    //  GET/SET
    //--------------------------------------
    //--------------------------------------
    //  EVENTS
    //--------------------------------------
    private void OnData(CEvent e)
    {
        GameCenterDataPackage package = e.data as GameCenterDataPackage;

        ByteByffer b = new ByteByffer (package.buffer);

        Vector3 pos = new Vector3 (0, 0, 1);
        pos.x = b.readFloat ();
        pos.y = b.readFloat ();

        PTPGameController.instance.createRedSphere (pos);
    }
Ejemplo n.º 2
0
    //--------------------------------------
    //  PUBLIC METHODS
    //--------------------------------------

    //--------------------------------------
    //  GET/SET
    //--------------------------------------

    //--------------------------------------
    //  EVENTS
    //--------------------------------------

    private void OnData(CEvent e)
    {
        GameCenterDataPackage package = e.data as GameCenterDataPackage;

        ByteByffer b = new ByteByffer(package.buffer);


        Vector3 pos = new Vector3(0, 0, 1);

        pos.x = b.readFloat();
        pos.y = b.readFloat();



        PTPGameController.instance.createRedSphere(pos);
    }
 public MNT_NetworkPackage(byte[] data)
 {
     _ReceivedDate = new ByteByffer(data);
     _Id           = ReadValue <int>();
 }
Ejemplo n.º 4
0
    //--------------------------------------
    // INITIALIZE
    //--------------------------------------


    public MNT_BinaryReader(byte[] data)
    {
        _ReceivedDate = new ByteByffer(data);
    }