예제 #1
0
        public static Option <BlendTree> FindBlendTree(this IAnimationGraph graph, string path)
        {
            Ensure.That(graph, nameof(graph)).IsNotNull();

            return(graph.FindDescendantGraph <BlendTree>(path));
        }
예제 #2
0
 public static Option <IAnimationControl> FindDescendantControl(
     this IAnimationGraph graph, string path) =>
 path.Split("/").Rev().Match(
     () => None,
     graph.FindControl,
     (x, xs) => graph.FindDescendantGraph(string.Join("/", xs.Rev())).Bind(p => p.FindControl(x)));