@@ -0,0 +1,520 @@
+package com.ezardlabs.dethsquare.multiplayer;%0A%0Aimport java.nio.ByteBuffer;%0A%0Apublic class NetworkTransform extends NetworkBehaviour %7B%0A%0A%09@Override%0A%09protected ByteBuffer onSend() %7B%0A%09%09data.putFloat(0, transform.position.x); // 0 - 3%0A%09%09data.putFloat(4, transform.position.y); // 4 - 7%0A%09%09return data;%0A%09%7D%0A%0A%09@Override%0A%09protected void onReceive(ByteBuffer data, int index) %7B%0A%09%09transform.position.x = data.getFloat(index);%0A%09%09transform.position.y = data.getFloat(index + 4);%0A%09%7D%0A%0A%09@Override%0A%09public int getSize() %7B%0A%09%09return 8;%0A%09%7D%0A%7D%0A

Add component for automatically synchronising a Transform component between multiplayer clients