Chris Gregan
7 years ago
committed by
GitHub
3 changed files with 48 additions and 2 deletions
@ -0,0 +1,26 @@
|
||||
namespace Fungus |
||||
{ |
||||
/// <summary> |
||||
/// Menu change event signalling system. |
||||
/// You can use this to be notified about various events, actions and state changes of the Menu system. |
||||
/// </summary> |
||||
public static class MenuSignals |
||||
{ |
||||
#region Public members |
||||
|
||||
/// <summary> |
||||
/// MenuStart signal. Sent when a Menu is being shown, where previously there wasn't one. |
||||
/// </summary> |
||||
public static event MenuStartHandler OnMenuStart; |
||||
public delegate void MenuStartHandler(MenuDialog menu); |
||||
public static void DoMenuStart(MenuDialog menu) { if (OnMenuStart != null) OnMenuStart(menu); } |
||||
|
||||
/// <summary> |
||||
/// MenuEnd signal. Sent when a Menu is no longer being shown, where previously there was one. |
||||
/// </summary> |
||||
public static event MenuEndHandler OnMenuEnd; |
||||
public delegate void MenuEndHandler(MenuDialog menu); |
||||
public static void DoMenuEnd(MenuDialog menu) { if (OnMenuEnd != null) OnMenuEnd(menu); } |
||||
#endregion |
||||
} |
||||
} |
@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2 |
||||
guid: a233507ebbe704141b29dd39f6428b21 |
||||
timeCreated: 1523089248 |
||||
licenseType: Free |
||||
MonoImporter: |
||||
externalObjects: {} |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
Loading…
Reference in new issue