public TimedEvent Timerchange(int timeoutDelay, Dictionary <string, object> args) { TimedEvent timedEvent = new TimedEvent(timeoutDelay); timedEvent.Args = args; timedEvent.OnFire += CallBack; return(timedEvent); }
public void CallBack(TimedEvent e) { World.GetWorld().Time = FreezeTime; Logger.Log("Time changed to " + FreezeTime); }