public void PlatformerUpdate(float delta) { counter += delta; if (counter >= seconds && !wasReady) { wasReady = true; if (onReady != null) { onReady(); } } }