Example #1
0
 public override void AddSnake(Snake snake)
 {
     if (snake.Type.ToLower() == "land")
     {
         SnakeList.Add(snake);
     }
     else
     {
         throw new Exception("Unable to add snake to land terrarium!");
     }
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     snakeList = new SnakeList(head);
     InvokeRepeating("TimerInvoke", 0.001f, speed);
     FoodFunction();
 }