Ejemplo n.º 1
0
 public void ScareAll(float minDelay, float maxDelay)
 {
     for (int i = 0; i < _thisT.childCount; i++)
     {
         if (_thisT.GetChild(i).GetComponent <LandingSpot>() != null)
         {
             LandingSpot spot = _thisT.GetChild(i).GetComponent <LandingSpot>();
             spot.Invoke("ReleaseFlockChild", Random.Range(minDelay, maxDelay));
         }
     }
 }
Ejemplo n.º 2
0
 public void ScareAll(float minDelay, float maxDelay)
 {
     for (int i = 0; i < this._thisT.childCount; i++)
     {
         if (this._thisT.GetChild(i).GetComponent <LandingSpot>() != null)
         {
             LandingSpot component = this._thisT.GetChild(i).GetComponent <LandingSpot>();
             component.Invoke("ReleaseFlockChild", UnityEngine.Random.Range(minDelay, maxDelay));
         }
     }
 }