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