Skip to content
/ tonity Public

Includes TON Connect UI integration that allows transaction without leaving game app for Unity WebGL

Notifications You must be signed in to change notification settings

viol3/tonity

Repository files navigation


TONity
TONity

TON Connect UI integration that allows transaction without leaving game app for Unity WebGL.

version

Key FeaturesHow To UseDownloadCreditsLicense

screenshot

Key Features

  • Connects to any TON-compatible wallet with responsible TON Connect UI.
  • Proceeds transactions without leaving game app.
  • Supports any platform includes Telegram Mini Apps that can run WebGL and Javascript.
  • Supports test-net
  • Samples; A basic UI and Fortune Wheel mechanic.

How To Use

To clone and run this application, you'll need Git and Unity installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/viol3/tonity

Drag-drop Tonity prefab into your starter scene and in any script, you can start to connect by calling:

// Connect to wallet
$ Tonity.Instance.ConnectWallet()

To send TON to another wallet:

// Connect to wallet
$ Tonity.Instance.TransferTon("[WALLET_ADDRESS]", [AMOUNT IN FLOAT], "[COMMENT]");

If you want to deploy the game into Telegram Mini Apps, you need to setup a manifest.json file such as "WebGL Templates/Tonity/manifest.json". After you uploaded the web files into your hosting, you need to paste your manifest.json link(it should be accessible globally) into index.html file, line 32.

Download

You can download the latest installable plugin version to any Unity Project.

Credits

This software uses the following packages and assets:

Support

Buy Me A Coffee

License

You need to give me a place in your credits page. Allowed to use in any commercial or non-commercial projects. We are not responsible for any damage that may occur while using this project.


GitHub @viol3  ·  Twitter @aliveavcisi YouTube @aliveavcisi

About

Includes TON Connect UI integration that allows transaction without leaving game app for Unity WebGL

Resources

Stars

Watchers

Forks

Packages

No packages published