Coherent UI for Unity3D  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Coherent.UI.ButtonHandler Class Reference

Handler for button related events More...

Public Member Functions

void Initialize (CoherentUIMenu owner)
 Initializes the Handler delegate in the Start method. If you want to set a different delegate, you can set it from another component in the Awake method. More...
 
void Invoke ()
 Invokes the handler More...
 
delegate void Invoker ()
 Delegate signature for the event handler More...
 

Public Attributes

Object Target
 Target GameObject or MonoBehavior for the event. None if using the current GameObject. More...
 
string Method
 Method (or message) name to be called for the event More...
 
bool IsMessage = true
 Whether Method specifies a method or a message to be called More...
 
Invoker Handler
 The delegate that is executed when the event of this handler is triggered More...
 

Detailed Description

Handler for button related events

Member Function Documentation

void Coherent.UI.ButtonHandler.Initialize ( CoherentUIMenu  owner)
inline

Initializes the Handler delegate in the Start method. If you want to set a different delegate, you can set it from another component in the Awake method.

Parameters
ownerthe menu that owns our button
void Coherent.UI.ButtonHandler.Invoke ( )
inline

Invokes the handler

delegate void Coherent.UI.ButtonHandler.Invoker ( )

Delegate signature for the event handler

Member Data Documentation

Invoker Coherent.UI.ButtonHandler.Handler

The delegate that is executed when the event of this handler is triggered

bool Coherent.UI.ButtonHandler.IsMessage = true

Whether Method specifies a method or a message to be called

string Coherent.UI.ButtonHandler.Method

Method (or message) name to be called for the event

Object Coherent.UI.ButtonHandler.Target

Target GameObject or MonoBehavior for the event. None if using the current GameObject.