Exemplo n.º 1
0
 void updateBoatClickReaction()
 {
     if (judgement != JudgeEventType.unfinish)               //win or lose
     {
         boat.shutDownClickReaction();
         return;
     }
     for (int i = 0; i < roles.Length; ++i)
     {
         if (roles[i].isMoving())
         {
             boat.shutDownClickReaction();
             return;
         }
     }
     boat.turnOnClickReaction();
 }
Exemplo n.º 2
0
 void updateBoatClickReaction()
 {
     if (check() != 0)
     {
         boat.shutDownClickReaction();
         return;
     }
     for (int i = 0; i < roles.Length; ++i)
     {
         if (roles[i].isMoving())
         {
             boat.shutDownClickReaction();
             return;
         }
     }
     boat.turnOnClickReaction();
 }