Esempio n. 1
0
 void CheckViolationOffline()
 {
     Debug.Log("StartCheck");
     GameObject[] Enemys = GameObject.FindGameObjectsWithTag("enemy");
     foreach (GameObject E in Enemys)
     {
         enemy Enemy = E.GetComponent <enemy>();
         if (Enemy.PreviousPosition.Count >= 30)
         {
             Enemy.CheckViolationOffline();
         }
     }
 }