2D Toolkit Forum

2D Toolkit => Support => Topic started by: ironquark on October 03, 2015, 02:20:32 pm

Title: 2D Toolkit Basic UI sample
Post by: ironquark on October 03, 2015, 02:20:32 pm
Hello

I'm trying to understand the basics of 2D Toolkit Basic UI sample.

My question is, Where is the source code event of the NextPageButton? see this image: (http://s30.postimg.org/toxde3anl/2_D_Toolkit.png)

Instead of the event NextPage I want to change de source code of this button to close the game application.

For example:
 Application.Quit();

Regards,
IronQuark
Title: Re: 2D Toolkit Basic UI sample
Post by: unikronsoftware on October 04, 2015, 12:43:03 pm
Those examples are bound in code. tk2dUIDemoController.cs, its bound in OnEnable, removed in OnDisable. You can also use drag and drop if you prefer that.
Title: Re: 2D Toolkit Basic UI sample
Post by: ironquark on October 04, 2015, 02:54:11 pm
Thank you its working!!!