Key Features • How To Use • Download • Credits • License
- 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.
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.
You can download the latest installable plugin version to any Unity Project.
This software uses the following packages and assets:
- TON Connect UI
- TON Web JS
- 2D assets are taken from FlatIcon Freepik Bermuda Games
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