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!"); } }
// Use this for initialization void Start() { snakeList = new SnakeList(head); InvokeRepeating("TimerInvoke", 0.001f, speed); FoodFunction(); }