-
Notifications
You must be signed in to change notification settings - Fork 368
Closed
Description
Even if I create a simple scene that just has a single sprite object.
I create the sprite.
Add Transform Gesture.
Transformer Gesture.
Release Gesture.
On Release I tell it to run Application.Quit(). Crash to desktop.
This doesn't appear to be the case when I build to my Windows 10 machine. But on my touch table it's happening every time. Across all projects. If you close out before any TS gesture is sent everything closes gracefully.
Any ideas?
output_log.txt
2016-01-07_212300.zip
Also: Here is the >entire< body of scripts in the scene:
using UnityEngine;
using System.Collections;
using TouchScript.Gestures;
public class DestroyMe : MonoBehaviour {
void OnEnable()
{
if (GetComponent<ReleaseGesture>())
{
GetComponent<ReleaseGesture>().Released += DestroyMe_Released;
}
}
void OnDisable()
{
if (GetComponent<ReleaseGesture>())
{
GetComponent<ReleaseGesture>().Released -= DestroyMe_Released;
}
}
private void DestroyMe_Released(object sender, System.EventArgs e)
{
Application.Quit();
}
}
That's it. You can switch the gesture to any other gesture and the outcome should be the same :).
Metadata
Metadata
Assignees
Labels
No labels