예제 #1
0
        public static Texture2D Tex(Color col)
        {
#if UNITY_EDITOR
            if (col == Color.blue)
            {
                return(EditorDataMgr.GetTexture("C-Blue"));
            }
            else if (col == Color.yellow)
            {
                return(EditorDataMgr.GetTexture("C-Yellow"));
            }
            else if (col == Color.red)
            {
                return(EditorDataMgr.GetTexture("C-Red"));
            }
            else if (col == Color.green)
            {
                return(EditorDataMgr.GetTexture("C-Green"));
            }
            else if (col == Color.white)
            {
                return(EditorDataMgr.GetTexture("C-WhiteOut"));
            }
            return(ColorToTex(5, Color.clear));
#else
            return(null);
#endif
        }
예제 #2
0
        public static GUISkin GetGUISkinStyle(string skinName)
        {
#if UNITY_EDITOR
            return(EditorDataMgr.GetSkin(skinName));
#else
            return(null);
#endif
        }
예제 #3
0
        protected internal void Draw()
        {
#if  UNITY_EDITOR
            if (texture2D == null)
            {
                texture2D = EditorDataMgr.GetTexture("WG");
                return;
            }
            DrawBackground();
            foreach (Node node in nodes)
            {
                node.Draw();
            }
#endif
        }
예제 #4
0
        public static void Init()
        {
            IsInit = false;
            EditorDataMgr.Init();
            NodeStack.FetchNode();
            NodeInputSystem.Fetch();
            ConnectionType.Fetch();
#if UNITY_EDITOR
#endif
            IsInit = true;
            if (TrigInit != null)
            {
                TrigInit();
            }
        }