Пример #1
0
 // Update is called once per frame
 void Update()
 {
     status = parentCard.status;
     if (timer.Running)
     {
         waitingTime.color = new Color32(255, 255, 255, 255);
         waitingTime.text  = (timer.Duration - Mathf.Round(timer.elapsedSeconds)).ToString();
     }
     else if (status.Equals("Updating"))
     {
         parentCard.Activation();
     }
     if (status.Equals("Waiting"))
     {
         waitingTime.text  = "Waiting";
         waitingTime.color = new Color32(255, 255, 0, 255);
     }
 }