Esempio n. 1
0
 public static void StartAlarmSystem()
 {
     Text[] allObjects = UnityEngine.Object.FindObjectsOfType <Text>();
     if (allObjects.Length == 0)
     {
         return;
     }
     foreach (Text go in allObjects)
     {
         TimerScript ts = go.GetComponent <TimerScript>();
         if (ts != null)
         {
             ts.AlarmActivated();
         }
     }
 }