override public void Update() { for (int i = 0; i < balls.Count; i++) { balls[i].Steen_Physics(); col.PoolWall(balls[i]); } physics.Update(); if (engine.GetKeyDown(Key.S)) { for (int i = 0; i < balls.Count; i++) { if (balls[i].GetShoot() == false) { balls[i].SetShoot(true); if (i + 1 < balls.Count) { balls[i + 1].SetShoot(false); } else { balls[0].SetShoot(false); } return; } } } }
override public void Update() { if (engine.GetKeyDown(Key.Q)) { Environment.Exit(1); } }