Exemplo n.º 1
0
        public void Show()
        {
            Start();
            BeginPlay();
            if (BeginEvent != null)
            {
                BeginEvent.Invoke();
            }

            DogCall();
            PersonCall();
            WindCall();
            Funny();
            if (HighEvent != null)
            {
                HighEvent.Invoke();
            }

            EndPlay();
            GetCharge();
            if (EndEvent != null)
            {
                EndEvent.Invoke();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 开始整个流程
        /// </summary>
        public void Begin()
        {
            if (!ContentAsset)
            {
                return;
            }

            _currentStep    = 0;
            _currentContent = null;
            _currentTarget  = null;
            _running        = true;
            _executing      = false;

            BeginEvent?.Invoke();

            BeginCurrentStep();
        }
Exemplo n.º 3
0
        /// <summary>
        /// 开始步骤流程
        /// </summary>
        public void Begin()
        {
            if (!ContentAsset || ContentAsset.Content.Count <= 0 || _stepContents.Count <= 0)
            {
                throw new HTFrameworkException(HTFrameworkModule.StepEditor, "步骤控制者:当前无法开始步骤流程,请重新编译步骤内容 RecompileStepContent!");
            }

            _currentStepIndex = 0;
            _currentContent   = null;
            _currentTarget    = null;
            _currentHelper    = null;
            _running          = true;
            _pause            = false;
            _executing        = false;

            BeginEvent?.Invoke();

            BeginCurrentStep();
        }
Exemplo n.º 4
0
        /// <summary>
        /// 开始整个流程
        /// </summary>
        public void Begin()
        {
            if (!ContentAsset || ContentAsset.Content.Count <= 0)
            {
                return;
            }

            _currentStep    = 0;
            _currentContent = null;
            _currentTarget  = null;
            _currentHelper  = null;
            _running        = true;
            _pause          = false;
            _executing      = false;

            BeginEvent?.Invoke();

            BeginCurrentStep();
        }
 private void Run() => BeginEvent?.Invoke();