protected void CheckLoopEnd() { if (LoopCount == 0) { return; } if (LoopType == LoopType.YoYo) { Instruction.SwitchLastAndFirst(); } }