public void OnStepStart(StepEventArgs e) { if (this.m_stepStartEventHandle != null) { this.m_stepStartEventHandle(this, e); } foreach (var item in m_steppedObjectList) { var args = new SteppedObjectEventArgs(); item.OnSteppedObjectStart(this, args); } m_judeCoroutine = StartCoroutine(JudgeEnumerator()); }
/// <summary> /// Undo this step,reset all stepped Object to the original state. /// </summary> public void Undo() { var args = new StepEventArgs(); OnStepUndo(args); }