private void ExecuteCurrentStep() { _executing = true; _currentContent.Execute(this); //UGUI按钮点击型步骤,取消按钮注册 if (_currentButton) { _currentButton.onClick.RemoveListener(ButtonClickCallback); _currentButton = null; } //销毁步骤助手 if (_currentHelper != null) { _currentHelper.OnTermination(); _currentHelper = null; } ExecuteStepEvent?.Invoke(_currentContent, _stepContentEnables.ContainsKey(_currentContent.GUID) ? _stepContentEnables[_currentContent.GUID] : false); }
/// <summary> /// 步骤执行 /// </summary> private void ExecuteCurrentStep() { _executing = true; _currentContent.Execute(); ExecuteStepEvent?.Invoke(_currentContent, _currentContent.IsEnable && _currentContent.IsEnableRunTime); //UGUI按钮点击型步骤,取消按钮注册 if (_currentButton) { _currentButton.onClick.RemoveListener(ButtonClickCallback); _currentButton = null; } //销毁步骤助手 if (_currentHelper != null) { _currentHelper.OnTermination(); _currentHelper = null; } }
private void ExecuteCurrentStep() { _running = true; _currentContent.Execute(this); //UGUI按钮点击型步骤,取消按钮注册 if (_currentButton) { _currentButton.onClick.RemoveListener(ButtonClickCallback); _currentButton = null; } //销毁步骤助手 if (_currentHelper != null) { _currentHelper.OnTermination(); _currentHelper = null; } if (ExecuteStepEvent != null) { ExecuteStepEvent(_currentContent); } }