public void CallBackMute(TimedEvent e) { Dictionary <string, object> dic = e.Args; e.Kill(); Fougerite.Player pl = (Fougerite.Player)dic["player"]; RemoveMute(pl); }
public TimedEvent TimerMute(int timeoutDelay, Dictionary <string, object> args) { TimedEvent timedEvent = new TimedEvent(timeoutDelay); timedEvent.Args = args; timedEvent.OnFire += CallBackMute; return(timedEvent); }