public Game(Level level, Snake snake, Player player) { this.level = level; this.snake = snake; this.player = player; this.speedController = SpeedController.GetInstance(); }
public static SpeedController GetInstance() { if (instance == null) { instance = new SpeedController(); } return(instance); }
private void InitializeGameSpeed() { this.gameSpeed = SpeedController.GetInstance(); gameSpeed.OnTick += gameTimer_OnTick; }