Esempio n. 1
0
 void updateRolesClickReaction()
 {
     if (boat.isMoving() || judgement != JudgeEventType.unfinish)
     {
         for (int i = 0; i < roles.Length; ++i)
         {
             roles[i].shutDownClickReaction();
         }
     }
     else
     {
         for (int i = 0; i < roles.Length; ++i)
         {
             roles[i].turnOnClickReaction();
         }
     }
 }
Esempio n. 2
0
 void updateRolesClickReaction()
 {
     if (boat.isMoving() || check() != 0)
     {
         for (int i = 0; i < roles.Length; ++i)
         {
             roles[i].shutDownClickReaction();
         }
     }
     else
     {
         for (int i = 0; i < roles.Length; ++i)
         {
             roles[i].turnOnClickReaction();
         }
     }
 }