示例#1
0
文件: Storyboard.cs 项目: Wieku/osu
        public StoryboardLayer GetLayer(string name)
        {
            if (!layers.TryGetValue(name, out var layer))
            {
                layers[name] = layer = new StoryboardLayer(name, --minimumLayerDepth);
            }

            return(layer);
        }
示例#2
0
        public StoryboardLayer GetLayer(string name)
        {
            if (!layers.TryGetValue(name, out var layer))
            {
                layers[name] = layer = new StoryboardLayer(name, layers.Values.Min(l => l.Depth) - 1);
            }

            return(layer);
        }