Initial. Added files
This commit is contained in:
19
Assets/Scripts/Managers/GlobalEventManager.cs
Executable file
19
Assets/Scripts/Managers/GlobalEventManager.cs
Executable file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
public class GlobalEventManager
|
||||
{
|
||||
public static event Action<Team> onCaptureFlag;
|
||||
|
||||
public static void SendCaptureFlag(Team team)
|
||||
{
|
||||
onCaptureFlag?.Invoke(team);
|
||||
onCaptureFlag = null;
|
||||
}
|
||||
|
||||
public static event Action onTimeLeft;
|
||||
public static void SendTimeout()
|
||||
{
|
||||
onTimeLeft?.Invoke();
|
||||
onTimeLeft = null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user