public void Reset(Position position) { Direction = Direction.Up; Position = position; SnakeBodyParts.Clear(); Grow(); Grow(); Grow(); }
/// <summary> /// Changes the values to default /// </summary> private void ResetGame() { SnakeBodyParts.Clear(); Snake = new Snake(); Apple = new Apple(); Score = 0; Timer.Start(); IsGameOver = false; }