Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
void | OnSelect (BaseEventData eventData) |
void | Setup (AC.Menu _menu, MenuElement _element, int _slot) |
Syncs the component to a slot within a menu. More... | |
Protected Attributes | |
AC.Menu | menu |
MenuElement | menuElement |
int | slot |
This component acts as a click handler for Unity UI Buttons, and is added automatically by UISlot.
void AC.UISlotClick.OnSelect | ( | BaseEventData | eventData | ) |
Implementation of ISelectHandler
void AC.UISlotClick.Setup | ( | AC.Menu | _menu, |
MenuElement | _element, | ||
int | _slot | ||
) |
Syncs the component to a slot within a menu.
_menu | The Menu that the Button is linked to |
_element | The MenuElement within _menu that the Button is linked to |
_slot | The index number of the slot within _element that the Button is linked to |