This example shows an alternative way of accepting mousedowns other than with Nitro by using C# delegates and anonymous delegates.
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... | |
|
inlinestatic |
Direct is called directly with onmousedown="CSharpExample.Direct".
|
inlineprivate |
Called when any span gets clicked. This is linked up in Start as a delegate.
|
inlineprivate |
Called when any h1 gets clicked. This is linked up in Start as a delegate.
|
inlineprivate |
| TextAsset CSharpExample.HtmlFile |
A File containing the html/css/nitro of your UI.