Exemplo n.º 1
0
 public override void OnInteract(GameObject interactor, Interaction interaction)
 {
     if (state == State.READY)
     {
         currentPumps++;
         SetPumpWait();
     }
     else if (state == State.DONE)
     {
         nozzle.StartPumping(length, amountPerDrain);
         SetPumpPumpin();
     }
 }