Esempio n. 1
0
        public ZNodeAction(ZNodeTree nodeTree, Rect wr, ZBTActionManager.NODE_TYPE actionType) : base(BASE_TYPE.ACTION, nodeTree, wr)
        {
            nodeType = actionType;

            _imgStyle.normal.background = NodeEditor.SkinItem.GetActionNodeImage(nodeType) as Texture2D;
            _inspectorName = nodeType.ToString();
        }
Esempio n. 2
0
        override public void Serialize(ref JSON nodeJS)
        {
            base.Serialize(ref nodeJS);

            nodeJS["nodeType"] = nodeType.ToString();
        }