// Ensure that the instance is destroyed when the game is stopped in the editor. void OnApplicationQuit() { if (tuioInput != null) { tuioInput.collectEvents = false; tuioInput.disconnect(); } }
// Ensure that the instance is destroyed when the game is stopped in the editor. void OnApplicationQuit() { if (tuioInput != null) { tuioInput.eventDelegate = null; tuioInput.disconnect(); } }
// Ensure that the instance is destroyed when the game is stopped in the editor. void OnApplicationQuit() { if (tuioInput != null) { tuioInput.collectEvents = false; tuioInput.disconnect(); // print ("disconnection from tuio"); } }