public TimedEvent RadTimer(int timeoutDelay, Dictionary <string, object> args) { TimedEvent timedEvent = new TimedEvent(timeoutDelay); timedEvent.Args = args; timedEvent.OnFire += CallBackRad; return(timedEvent); }
public void CallBackRad(TimedEvent e) { e.Kill(); foreach (Fougerite.Player pl in Server.GetServer().Players) { try { TryGiveRad(pl); } catch (Exception ex) { Debug.Log(Name + " Error A:" + ex.ToString()); } } RadTimer(TimeRad * 1000, null).Start(); }