示例#1
0
 private void Update()
 {
     if (gameMode == GameMode.PLAY)
     {
         m_time += Time.deltaTime;
         if (0 == Time.frameCount % 20)
         {
             m_uIHandle.SetTime(m_time);
         }
     }
     else if (gameMode == GameMode.MOVING)
     {
         if (0 == Time.frameCount % 23)
         {
             if (IsBallsStoped())
             {
                 //Debug.Log("TimeToMove");
                 StopMove();
                 PlayFinish(true);
             }
         }
     }
 }