public static Option <T> FindControl <T>(this IAnimationGraph graph, string name) where T : IAnimationControl { Ensure.That(graph, nameof(graph)).IsNotNull(); return(graph.FindControl(name).OfType <T>().HeadOrNone()); }
public Option <IAnimationControl> FindControl(string name) => _graph.FindControl(name);