Esempio n. 1
0
 public void PlayerConfirm(BallDefine.BallStateDefine rState)
 {
     if (rState == BallDefine.BallStateDefine.BallStateDefine_Blue)
     {
         m_bBlueConfirm      = true;
         TxtBlueConfirm.text = string.Format("蓝色完毕");
     }
     else if (rState == BallDefine.BallStateDefine.BallStateDefine_Red)
     {
         m_bRedConfirm      = true;
         TxtRedConfirm.text = string.Format("红色完毕");
     }
     if (m_bBlueConfirm == true && m_bRedConfirm == true)
     {
         m_bBlueConfirm = false;
         m_bRedConfirm  = false;
         ballMove.SetPlayerPenalty(m_nextState);
         TxtBlueConfirm.text = string.Format("");
         TxtRedConfirm.text  = string.Format("");
         TxtScoreNotify.text = "";
         GamePause           = false;
     }
 }