예제 #1
0
        static public bool Open(TableLineRef inRef)
        {
            RuleTableEditor window = GetWindow <RuleTableEditor>();

            if (window.TryOpen(inRef))
            {
                window.Show();
                return(true);
            }

            return(false);
        }
예제 #2
0
        static public bool Edit(UnityEngine.Object inTarget)
        {
            RuleTableEditor window = GetWindow <RuleTableEditor>();

            if (window.TryEdit(inTarget))
            {
                window.Show();
                return(true);
            }

            return(false);
        }
예제 #3
0
        static public bool Edit(IRSRuleTableSource inSource)
        {
            RuleTableEditor window = GetWindow <RuleTableEditor>();

            UnityEngine.Object objSource = inSource as UnityEngine.Object;
            if (objSource != null && window.TryEdit(objSource))
            {
                window.Show();
                return(true);
            }

            return(false);
        }