예제 #1
0
 public void UpdateCountdown()
 {
     if (!ar_ready)
     {
         gold_manager.SendGoldPositionUpdate();
         ar_ready = true;
     }
     start_countdown -= 1 * Time.deltaTime;
     //update clients with the current countdown
     if (start_countdown <= 0.0f)
     {
         game_started = true;
         NWMGameStart start = new NWMGameStart();
         start.started = true;
         server.SendGameStarted(start);
         server.GetComponent <InGameTimer>().StartTimer();
     }
 }