Beispiel #1
0
        public AbstractUITrrigerTerm SetTrrigerTerm(AbstractUITrrigerTerm term, TrrigerType type)
        {
            RemoveTrrigerTerm(term);
            var result = AddTrrigerTerm(type);

            return(result);
        }
Beispiel #2
0
        public AbstractUITrrigerTerm AddTrrigerTerm(TrrigerType type)
        {
            var termType = AbstractUITrrigerTerm.GetTrrigerTermType(type);
            var abst     = termComponentObject.AddComponent(termType) as AbstractUITrrigerTerm;

            _trrigerTerm = abst;
            return(abst);
        }
Beispiel #3
0
        public TrrigerTermNodeData(TrrigerTermNodeSet nodeSet, UITransitionTerm tranTerm)
        {
            _nodeSet  = nodeSet;
            _tranTerm = tranTerm;
            if (_trrigerTerm == null)
            {
                _tranTerm.AddTrrigerTerm(TrrigerType.None);
            }

            _trrigerType = _trrigerTerm.GetTrrigerType();
        }
        public static System.Type GetTrrigerTermType(TrrigerType type)
        {
            switch (type)
            {
            case TrrigerType.Onclick:
                return(typeof(OncliclUITrrigerTerm));

            case TrrigerType.None:
                return(typeof(NoneUITrrigerTerm));

            default:
                return(null);
            }
        }
Beispiel #5
0
        public override void AbstractCallBack()
        {
            EditorGUI.BeginChangeCheck();
            _trrigerType = (TrrigerType)EditorGUILayout.EnumPopup("Type", _trrigerType);
            if (EditorGUI.EndChangeCheck())
            {
                _tranTerm.SetTrrigerTerm(_trrigerTerm, _trrigerType);
            }

            switch (_trrigerType)
            {
            case TrrigerType.None:
                break;

            case TrrigerType.Onclick:
            {
                OncliclUITrrigerTerm term = (OncliclUITrrigerTerm)_trrigerTerm;
                term._HeadButton = EditorGUILayout.ObjectField("ボタン", term._HeadButton, typeof(Button), true) as Button;
                break;
            }
            }
        }