public void createFood() { if (isEaten) { var x = random.Next(5, 80); var y = random.Next(5, 50); foodblock = new FoodBlock(_Texture, new Vector2(x, y), Color.Chocolate); isEaten = false; } }
void CreateFood(Tiles.Tile Tile) { foodblock = new FoodBlock(Tile._Texture, Tile._Position, Tile._Color); }