Esempio n. 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (t % 6 == 0)
     {
         int   index = t / 30;
         float tgt   = Data.getTarget(index);
         if (tgt != 2222)
         {
             target = tgt;
             pid.setTarget(target);
         }
         else
         {
             button1.PerformClick();
         }
     }
     else
     {
         if (!started && tmpt < target)
         {
             t = -1;
         }
         else
         {
             started = true;
         }
         module.quest4T();
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     pid.setTarget(100);
 }