public void StartAll() { for (int i = 0; i < _loops.Count; ++i) { ILoopable lp = (ILoopable)_loops[i]; lp.OnStart(); _enabs[i] = true; } }
public void Start(ILoopable toStart) { for (int i = 0; i < _loops.Count; ++i) { ILoopable lp = (ILoopable)_loops[i]; if (lp == toStart) { lp.OnStart(); _enabs[i] = true; return; } } Debug.Print("CTR: Could not find object in scheduler"); }