public bool StopUse()
 {
     if (Object.op_Equality((Object)this._user, (Object)null))
     {
         return(false);
     }
     this._user = (WildBirdFlock)null;
     return(true);
 }
 public bool SetUse(WildBirdFlock _birdFlock)
 {
     if (Object.op_Equality((Object)_birdFlock, (Object)null) || Object.op_Inequality((Object)this._user, (Object)null) && Object.op_Inequality((Object)this._user, (Object)_birdFlock))
     {
         return(false);
     }
     this._user = _birdFlock;
     return(true);
 }
 public bool StopUse(WildBirdFlock _birdFlock)
 {
     if (Object.op_Equality((Object)this._user, (Object)null) || Object.op_Equality((Object)_birdFlock, (Object)null) || Object.op_Inequality((Object)this._user, (Object)_birdFlock))
     {
         return(false);
     }
     this._user = (WildBirdFlock)null;
     this.SetCoolTime();
     return(true);
 }
 private void UpdateCoolTime()
 {
     if (this.IsCountStop || Object.op_Inequality((Object)this._user, (Object)null) || (!this.IsActive || !this.IsCountCoolTime) || Mathf.Approximately(0.0f, Time.get_timeScale()))
     {
         return;
     }
     this.CoolTimeCounter -= Time.get_unscaledDeltaTime();
     if ((double)this.CoolTimeCounter > 0.0)
     {
         return;
     }
     this.CoolTimeCounter = 0.0f;
     if (this.AddCheck == null || this.AddAnimalAction == null || !this.AddCheck(this.Position))
     {
         return;
     }
     this._user           = this.AddAnimalAction(this);
     this.IsCountCoolTime = Object.op_Equality((Object)this._user, (Object)null);
 }