public void Unsubscribe(PlayerTarget target) { if (_subscribedPlayers.Remove(target)) { _listener.PlayerSubscribers.Remove(target, this); } }
public void Subscribe(PlayerTarget target) { if (_subscribedPlayers.Add(target)) { _listener.PlayerSubscribers.Add(target, this); } }
public static void Broadcast(PlayerTarget target, AppBroadcast broadcast) { Listener?.PlayerSubscribers?.Send(target, broadcast); }