} //end Spawn() public bool getCollision() { return(Obstacle.getCollision()); }
} //end movePlayer() //Handles the spawning of the objects the player must avoid //Called every few seconds by a Timer run by the MainWindow public void spawn() { Obstacle obstacle = new Obstacle(playField, dispatcher, rand.Next(0, 250), player, pHitBox, speed); obstacles.Add(obstacle); } //end Spawn()