Exemplo n.º 1
0
        public override Color GetTint()
        {
            MediaNode   mediaNode   = (MediaNode)target;
            ExFlowChart exflowChart = mediaNode.graph as ExFlowChart;

            return((exflowChart.currentDefaultNode == mediaNode) ? exflowChart.currentDefaultColor : exflowChart.nonDefaultColor);
        }
Exemplo n.º 2
0
        protected void SetAsDefault(bool p_force)
        {
            ExFlowChart mGraph = (ExFlowChart)graph;

            if (p_force)
            {
                mGraph.SetAsDefault(this);
                name = "(Default) " + originalName;
            }
            else
            {
                Debug.Log(mGraph.name);
                if (mGraph.currentDefaultNode == null)
                {
                    name = "(Default) " + originalName;
                    mGraph.SetAsDefault(this);
                }
            }
        }