/// <summary> /// Creates a fate section for callback event when current time reaches the specified value. /// </summary> public FateSection CreateEvent(float time, FateSection.CallbackHandler callback) { FateSection section = new FateSection(time, time, 1); section.OnStart = callback; return(AddSection(section)); }
/// <summary> /// Adds the specified section and returns it. /// </summary> public FateSection AddSection(FateSection section) { sections.Add(section); RefreshTimeValues(); return(section); }