コード例 #1
0
ファイル: VMotion.cs プロジェクト: AndreaMelle/vmotion
	// Update is called once per frame
	void Update ()
	{
		if(isConnected)
		{
			Vector3 ypr = VMotionInternals.GetYawPitchRoll();
		}
	}
コード例 #2
0
ファイル: VMotion.cs プロジェクト: AndreaMelle/vmotion
	// 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 ();
	}
コード例 #3
0
ファイル: VMotion.cs プロジェクト: AndreaMelle/vmotion
	void OnApplicationQuit()
	{
		VMotionInternals.InitVMotion ();
	}