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>();
             StartCoroutine(spot.ReleaseFlockChild(minDelay, maxDelay));
         }
     }
 }
 public void ScareAll()
 {
     for (int i = 0; i < _thisT.childCount; i++)
     {
         if (_thisT.GetChild(i).GetComponent <LandingSpot>() != null)
         {
             LandingSpot spot = _thisT.GetChild(i).GetComponent <LandingSpot>();
             StartCoroutine(spot.ReleaseFlockChild(0.0f, 1.0f));
         }
     }
 }
 private void CheckPlayer()
 {
     for (int i = 0; i < this._thisT.childCount; i++)
     {
         LandingSpot component = this._thisT.GetChild(i).GetComponent <LandingSpot>();
         if (component != null && component.transform.position.Distance(Player.Get().transform.position) < UnityEngine.Random.Range(this.m_ScareDistMin, this.m_ScareDistMax))
         {
             component.ReleaseFlockChild();
         }
     }
 }
 private void CheckPlayer()
 {
     if (this.m_ReleaseAllFlockChildren)
     {
         if (!this.m_ReleaseAllChildrenUpdate && base.transform.position.Distance(Player.Get().transform.position) < UnityEngine.Random.Range(this.m_ScareDistMin, this.m_ScareDistMax))
         {
             this.m_ReleaseAllChildrenSpotList.Clear();
             for (int i = 0; i < this._thisT.childCount; i++)
             {
                 LandingSpot component = this._thisT.GetChild(i).GetComponent <LandingSpot>();
                 if (component != null)
                 {
                     this.m_ReleaseAllChildrenSpotList.Add(component);
                 }
             }
             this.m_ReleaseAllChildrenUpdate = true;
             if (this.m_AudioSource && (!this.m_PlayAudioOnce || !this.m_AudioAlreadyPlayed))
             {
                 this.m_AudioSource.Play();
                 this.m_AudioAlreadyPlayed = true;
                 return;
             }
         }
     }
     else
     {
         for (int j = 0; j < this.m_LandingSpots.Count; j++)
         {
             LandingSpot landingSpot = this.m_LandingSpots[j];
             if (landingSpot != null && landingSpot.transform.position.Distance(Player.Get().transform.position) < UnityEngine.Random.Range(this.m_ScareDistMin, this.m_ScareDistMax))
             {
                 landingSpot.ReleaseFlockChild();
             }
         }
     }
 }