private void OnTick(List <Events.TickNametagData> nametags) { if (Pad.IsControlJustPressed(0, (int)Control.ReplayStartStopRecordingSecondary)) { if (!_on) { _on = true; GfxHelper.SetTimeCycleById(_index); } else { GfxHelper.ClearCycle(); _on = false; } } if (Pad.IsControlJustPressed(0, (int)Control.PhoneLeft)) { _index--; UpdateIndex(); } else if (Pad.IsControlJustPressed(0, (int)Control.PhoneRight)) { _index++; UpdateIndex(); } }
public TimecycleTester() { GfxHelper.ClearCycle(); Events.Tick += OnTick; _on = false; }