void Start() { data = new RealtimeDataPacket(); record = new List <RealtimeDataPacket>(); InitSocket(); _lastFrameAngular = this.transform.rotation.eulerAngles; }
// Copy constructor public RealtimeDataPacket(RealtimeDataPacket packet) { pitch = packet.pitch; yaw = packet.yaw; roll = packet.roll; longitude = packet.longitude; altitude = packet.altitude; latitude = packet.latitude; speed = packet.speed; seq = packet.seq; }
void Start() { data = new RealtimeDataPacket(); InitSocket(); }