Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// 跳过步骤内容
 /// </summary>
 public void Skip(StepMaster master)
 {
     for (int i = 0; i < Wireds.Count; i++)
     {
         if (Wireds[i].Left == -1)
         {
             Skip(master, i);
         }
     }
 }
Esempio n. 3
0
 /// <summary>
 /// 执行步骤内容
 /// </summary>
 public void Execute(StepMaster master)
 {
     for (int i = 0; i < Wireds.Count; i++)
     {
         if (Wireds[i].Left == -1)
         {
             Execute(master, i);
         }
     }
 }
Esempio n. 4
0
        protected override void OnEnable()
        {
            _target = target as StepMaster;

            base.OnEnable();
        }
Esempio n. 5
0
 private void OnEnable()
 {
     _target = target as StepMaster;
 }