// Use this for initialization void Start() { if(Application.isEditor==true) { windowName = "Unity - MyScene.unity - 2-Finished - PC, Mac & Linux Standalone*"; } else { // Running exe windowName = "HelloMultitouch"; } dllFilePath = "C:\\gwdistro\\release\\1.0\\GestureworksCore\\bindings\\dotNET\\Unity\\tutorials\\02_HelloMultitouch\\2-Finished\\Assets\\Plugins\\Gestureworks\\Core\\GestureworksCore32.dll"; gmlFilePath = "C:\\gwdistro\\release\\1.0\\GestureworksCore\\bindings\\dotNET\\Unity\\tutorials\\02_HelloMultitouch\\2-Finished\\Assets\\MyScripts\\my_gestures.gml"; Debug.Log(dllFilePath); Core = new GestureWorks(); DllLoaded = Core.LoadGestureWorksDll(dllFilePath); Debug.Log("DllLoaded: "+DllLoaded); Core.InitializeGestureWorks(Screen.width, Screen.height); GmlLoaded = Core.LoadGML(gmlFilePath); WindowLoaded = Core.RegisterWindowForTouchByName(windowName); TouchPoints = new Dictionary<int, TouchCircle>(); Debug.Log("Hello Multitouch"); Debug.Log("Is DLL Loaded: " + DllLoaded); Debug.Log("lIs GML Loaded: " + GmlLoaded.ToString()); Debug.Log("Is Window Loaded: " + WindowLoaded.ToString()); }
// Use this for initialization void Start() { dllFileName = "GestureworksCore32.dll"; gmlFileName = "my_gestures.gml"; if(Application.isEditor==true){ windowName = "Unity - MyScene.unity - 2-Finished - PC, Mac & Linux Standalone*"; dllFilePath = Application.dataPath.Replace("/", "\\")+"\\Plugins\\GestureWorks\\Core\\"+dllFileName; gmlFilePath = Application.dataPath.Replace("/", "\\")+"\\MyScripts\\"+gmlFileName; } else { // Running exe windowName = "InteractiveClock"; dllFilePath = Application.dataPath.Replace("/", "\\")+"\\"+dllFileName; gmlFilePath = Application.dataPath.Replace("/", "\\")+"\\"+gmlFileName; } Core = new GestureWorks(); DllLoaded = Core.LoadGestureWorksDll(dllFilePath); Debug.Log("DllLoaded: "+DllLoaded); Core.InitializeGestureWorks(Screen.width, Screen.height); GmlLoaded = Core.LoadGML(gmlFilePath); WindowLoaded = Core.RegisterWindowForTouchByName(windowName); TouchPoints = new Dictionary<int, TouchCircle>(); Debug.Log("Interactive Clock"); Debug.Log("Is DLL Loaded: " + DllLoaded); Debug.Log("lIs GML Loaded: " + GmlLoaded.ToString()); Debug.Log("Is Window Loaded: " + WindowLoaded.ToString()); GestureObjects = new List<TouchObject>(); HitManager = new HitManager(Camera.main); InitializeGestureObjects(); }