public static void TriggerEvent(string name, EventInfo info, EventLifespan lifespan = EventLifespan.Instant) { if (Instance == null) { return; } var newEvent = new Event.Builder().WithName(name).WithLifespan(lifespan).WithInfo(info).Build(); Instance.TriggerEventInternal(newEvent); }
public Builder WithLifespan(EventLifespan lifespan) { _lifespan = lifespan; return(this); }