rise-and-swine/Assets/Scripts/Assembly-CSharp/ExternalMessageManager.cs
2023-02-25 23:04:03 -05:00

19 lines
473 B
C#

public class ExternalMessageManager : Singleton<ExternalMessageManager>
{
public static event ExternalAppMessageReceived onExternalAppMessageReceived;
public void OnMessageReceived(string message)
{
if (ExternalMessageManager.onExternalAppMessageReceived != null)
{
ExternalMessageManager.onExternalAppMessageReceived(message);
}
}
private void Awake()
{
base.SetAsPersistant();
}
public delegate void ExternalAppMessageReceived(string message);
}