Пример #1
0
 public void TurnSkipButton()
 {
     if (clickControllerObj.activeSelf)
     {
         if (turnController1Obj.activeSelf)
         {
             turnController1.OnTurnTimeEnds();
         }
         else
         {
             turnController2.OnTurnTimeEnds();
         }
     }
 }
Пример #2
0
 // Update is called once per frame
 private void Update()
 {
     countdown -= Time.deltaTime;
     if (countdown >= 0)
     {
         timeText.text         = countdown.ToString("f1") + "秒";
         TimerFillSlider.value = countdown;
     }
     if (countdown < 0 && first)
     {
         Debug.Log("OnTurnTimeEndsJudge");
         if (gTurnController1Obj.activeSelf)
         {
             Debug.Log("OnTurnTimeEnds");
             gTurnController1.OnTurnTimeEnds();
         }
         else
         {
             Debug.Log("OnTurnTimeEnds");
             gTurnController2.OnTurnTimeEnds();
         }
         first = false;
     }
 }