Detailed Description

This example shows an alternative way of accepting mousedowns other than with Nitro by using C# delegates and anonymous delegates.

Inheritance diagram for CSharpExample:

Static Public Member Functions

static void Direct (UIEvent mouseEvent)
 Direct is called directly with onmousedown="CSharpExample.Direct". More...
 

Public Attributes

TextAsset HtmlFile
 A File containing the html/css/nitro of your UI. More...
 

Private Member Functions

void Start ()
 
void OnElementMouseDown (UIEvent mouseEvent)
 Called when any span gets clicked. This is linked up in Start as a delegate. More...
 
void OnHeaderMouseDown (UIEvent mouseEvent)
 Called when any h1 gets clicked. This is linked up in Start as a delegate. More...
 

Member Function Documentation

static void CSharpExample.Direct ( UIEvent  mouseEvent)
inlinestatic

Direct is called directly with onmousedown="CSharpExample.Direct".

void CSharpExample.OnElementMouseDown ( UIEvent  mouseEvent)
inlineprivate

Called when any span gets clicked. This is linked up in Start as a delegate.

void CSharpExample.OnHeaderMouseDown ( UIEvent  mouseEvent)
inlineprivate

Called when any h1 gets clicked. This is linked up in Start as a delegate.

void CSharpExample.Start ( )
inlineprivate

Member Data Documentation

TextAsset CSharpExample.HtmlFile

A File containing the html/css/nitro of your UI.