예제 #1
0
 void Update()
 {
     if (TimersManager.RemainingTime(Timer) == -1)
     {
         TimersManager.SetTimer(this, 0f, delegate { Destroy(this); });
         TB.GetComponent <Text>().text = "Time Over";
         StartCoroutine("TimeOver");
     }
     else
     {
         TB.GetComponent <Text>().text = "残り時間:" + (int)TimersManager.RemainingTime(Timer) + "秒";
     }
 }
예제 #2
0
 protected virtual void Start()
 {
     TimersManager.AddTimers(this, Timers);
     Debug.Log(TimersManager.RemainingTime(ForgottenTimer));
 }