//-------------------------------------- // 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 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>(); }
//-------------------------------------- // INITIALIZE //-------------------------------------- public MNT_BinaryReader(byte[] data) { _ReceivedDate = new ByteByffer(data); }