Example #1
0
 public void onPowerbarPress(Powerbar powerbar)
 {
     if (m_myTurn)
     {
         Powerbar.PowerbarType ptype = powerbar.getPowerbarType();
         if (ptype == Powerbar.PowerbarType.HORZ)
         {
             horz = powerbar.getValueAsScalar();
         }
         if (ptype == Powerbar.PowerbarType.VERT)
         {
             vert = powerbar.getValueAsScalar();
             BaseGameManager.setDart(horz, vert);
         }
     }
 }