示例#1
0
 // 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));
 }
示例#2
0
文件: Applet.cs 项目: githubcatw/UniG
 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;
     }
 }
示例#3
0
 // Called when the app quits
 private void OnApplicationQuit()
 {
     // Shut down the Arx SDK
     Arx.Shutdown();
 }