private Track GetKeyTrack(FEngLib.Scripts.Script script, KeyTrackType trackType) { uint offset = (uint)trackType; return(script.Tracks.Find(e => e.Offset == offset)); }
/// <summary> /// Sets the currently running script and resets the script time. /// </summary> /// <param name="script">The script to run.</param> public void SetScript(FEngLib.Scripts.Script script) { this.CurrentScript = script; this.CurrentScriptTime = script == null ? -1 : 0; }