Exemple #1
0
        public void to( UIState _targetState, System.Func<bool> _onCheck, float _duration )
        {
            UITransition newTranstion = new UITransition ();

            newTranstion.source = this;
            newTranstion.target = _targetState;

            if ( _onCheck != null ) newTranstion.onCheck = _onCheck;

            newTranstion.duration = _duration;
            newTranstion.from = panel;
            newTranstion.to = _targetState.panel;

            transitionList.Add ( newTranstion );
        }
Exemple #2
0
        public void to(UIState _targetState, System.Func <bool> _onCheck, float _duration)
        {
            UITransition newTranstion = new UITransition();

            newTranstion.source = this;
            newTranstion.target = _targetState;

            if (_onCheck != null)
            {
                newTranstion.onCheck = _onCheck;
            }

            newTranstion.duration = _duration;
            newTranstion.from     = panel;
            newTranstion.to       = _targetState.panel;

            transitionList.Add(newTranstion);
        }