示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (scene.nowState == Status.WATING)
     // 等待阶段
     {
         centerText.text = "按ENTER键开始游戏!";
         if (Input.GetKeyDown("return"))
         {
             count.beginCount();
             roundText.text = "Round:" + round;
             recorder.SetActive();
             scene.nowState = Status.COUNTING;
             // 开始计数
         }
     }
 }