protected override void Update() { base.Update(); CurrentState = beatmap.State; Track.State = CurrentState; if (lastTrackNum != Track.CurrentTrackNum) { beatmap.BPM = Track.CurrentBPM; lastTrackNum = Track.CurrentTrackNum; } if (!gameScreen.DrawSize.Equals(lastSize) && beatmap.State == GameState.Playing) { fillTile(); lastSize = gameScreen.DrawSize; } beatmap.Autoplay(true); if (beatmap.FillRequird) { fillTile(); beatmap.FillRequird = false; } if (lastHit != beatmap.Hit) { Sample.Play(); lastHit = beatmap.Hit; } }