// Update is called once per frame void Update () { if(isConnected) { Vector3 ypr = VMotionInternals.GetYawPitchRoll(); } }
// Use this for initialization void Start () { DontDestroyOnLoad (this); // this will cause error if recalled. How to allow for re-init? // will a Unity scee reload a plugin DLL?? VMotionInternals.OnVMotionConnection += OnConnection; VMotionInternals.InitVMotion (); }
void OnApplicationQuit() { VMotionInternals.InitVMotion (); }