/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { breads = new FishBread[9]; // TODO: Add your initialization logic here int k = 0; for (int i = 0; i < 9; i++) { breads[i] = new FishBread(); if (i % 3 == 0) { k++; } teelPos = new Vector2((i % 3) * 200 + 300, 200 * k - 100); posList[i] = teelPos; } posMouse[0] = new Vector2(14, 137); posMouse[1] = new Vector2(70, 100); posMouse[2] = new Vector2(123, 3); oldState = Keyboard.GetState(); base.Initialize(); }
public LongClickTimer(FishBread _breads, int _startTime) { startTime = _startTime + term; breads = _breads; breads.Start = 0; }