File size: 918 Bytes
18a519f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
namespace Unity.VisualScripting
{
    [Plugin(BoltState.ID)]
    public sealed class BoltStateResources : PluginResources
    {
        private BoltStateResources(BoltState plugin) : base(plugin)
        {
            icons = new Icons(this);
        }

        public Icons icons { get; private set; }

        public override void LateInitialize()
        {
            icons.Load();
        }

        public class Icons
        {
            public Icons(BoltStateResources resources)
            {
                this.resources = resources;
            }

            private readonly BoltStateResources resources;
            public EditorTexture graph { get; private set; }
            public EditorTexture state { get; private set; }

            public void Load()
            {
                graph = typeof(StateGraph).Icon();
                state = typeof(State).Icon();
            }
        }
    }
}