/// <summary> /// Initialize this piece of food /// </summary> /// <param name="speed">Speed of food.</param> /// <param name="controller">Controller that made this.</param> public void Initialize(float speed, FallingFoodController controller) { //initializes values for the food before it begins scrolling this.scrollSpeed = speed; this.controller = controller; scrollTimer = new Timer(); }