// Start is called before the first frame update void Start() { Arx.Shutdown(); applet = new Applet(appletFiles) { uploadOnConnection = true, }; applet.Connected.AddListener(() => Show()); applet.Tap.AddListener(z => BuyItem(z)); }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { // Destroy files array files = null; // Remove all listeners Tap.RemoveAllListeners(); Connected.RemoveAllListeners(); // Shut down Arx integration Arx.Shutdown(); disposedValue = true; } }
// Called when the app quits private void OnApplicationQuit() { // Shut down the Arx SDK Arx.Shutdown(); }