/// <summary> Gets the next keyframe after a certain time. Returns null if no such keyframe exists. </summary> /// <param name="time"> the time to search from </param> /// <returns> the first keyframe after said time. </returns> public HitboxKeyframe NextKeyframe(float time) { return(Keyframes.Find(kf => kf.Time > time)); }