NICE1 DevPortal
  • 👾NICE1
  • NICE1 PLUGIN
    • Introduction
    • ChangeLogs
    • Unity Plugin
      • How to use
      • Play Login!!!!
      • How Login works
      • Play CharacterSelector!!!!
      • How CharacterSelector works
      • Troubleshooting
    • Unreal Plugin
    • Frequently Asked Questions
      • Compile the plugin for iOS
      • Add the plugin to the Unity XCode project.
  • NICE1 LINK
    • Introduction
  • SmartContracts
    • nice1swapper
    • nice1staking
    • n1licensepos
  • TestNet "Jungle4"
    • Create EOS Account (Testnet)
    • Create NFT (contract)
  • 🔗ADDITIONAL LINKS
    • Developers group (TG|ENG)
Powered by GitBook
On this page

Was this helpful?

  1. NICE1 PLUGIN
  2. Unity Plugin

Play CharacterSelector!!!!

PreviousHow Login worksNextHow CharacterSelector works

Last updated 10 months ago

Was this helpful?

Once the dependencies are configured, open the scene and run it to see the demo in action.

As you can see, initially, it is the same as the Login scene.

The same web view is opened after clicking the Login button.

If the query didn't find the specified license, we'll get a "No License" text.

Otherwise, a character selection panel will appear for us.

The character licenses are configured from the CharacterSelector in the scene.

Its default data is as follows.

If we click on the green button on the panel in the scene, the licenses will be reloaded. So, for example, if we change the last license to free and update.

Now, we will be able to click the "Capsule" character.

If we click on a button,for example, Circle, a message will appear in the console:

Note: To configure the behaviour of each button after clicking on one of them, while the scene is not running from the inspector, you should click on it an add a function in the OnClick() method.