private void Skip(StepMaster master, int index) { int stepIndex = Wireds[index].Right; Operations[stepIndex].Skip(); if (Operations[stepIndex].Instant) { for (int i = 0; i < Wireds.Count; i++) { if (Wireds[i].Left == stepIndex) { Skip(master, i); } } } else { master.DelayExecute(() => { for (int i = 0; i < Wireds.Count; i++) { if (Wireds[i].Left == stepIndex) { Skip(master, i); } } }, Operations[stepIndex].ElapseTime / StepMaster.SkipMultiple); } }
/// <summary> /// 跳过步骤内容 /// </summary> public void Skip(StepMaster master) { for (int i = 0; i < Wireds.Count; i++) { if (Wireds[i].Left == -1) { Skip(master, i); } } }
/// <summary> /// 执行步骤内容 /// </summary> public void Execute(StepMaster master) { for (int i = 0; i < Wireds.Count; i++) { if (Wireds[i].Left == -1) { Execute(master, i); } } }
protected override void OnEnable() { _target = target as StepMaster; base.OnEnable(); }
private void OnEnable() { _target = target as StepMaster; }