Exemple #1
0
        public override Color GetTint()
        {
            MediaNode   mediaNode   = (MediaNode)target;
            ExFlowChart exflowChart = mediaNode.graph as ExFlowChart;

            return((exflowChart.currentDefaultNode == mediaNode) ? exflowChart.currentDefaultColor : exflowChart.nonDefaultColor);
        }
        //[ContextMenu("Do Something")]
        //void DoSomething()
        //{
        //    Debug.Log("Perform operation");
        //}

        public void SetAsDefault(MediaNode p_mediaNode)
        {
            if (currentDefaultNode != null)
            {
                currentDefaultNode.name = currentDefaultNode.originalName;
            }

            currentDefaultNode = p_mediaNode;
        }