public TimedEvent Timer1(int timeoutDelay, Dictionary <string, object> args) { TimedEvent timedEvent = new TimedEvent(timeoutDelay); timedEvent.Args = args; timedEvent.OnFire += RemovePlayerFromPosisonedList; return(timedEvent); }
public void RemovePlayerFromPosisonedList(TimedEvent e) { var listpois = e.Args; e.Kill(); var ID = listpois["pID"]; //PoisonedIDs.Remove(ID.ToString()); metodo antiguo PoisonedIDs.RemoveAll(t => PoisonedIDs.Contains(ID.ToString()));// se asegura de quitar todas }