public bool SetUse(WildGround _animal)
 {
     if (Object.op_Equality((Object)_animal, (Object)null) || Object.op_Inequality((Object)this._user, (Object)null) && Object.op_Inequality((Object)this._user, (Object)_animal))
     {
         return(false);
     }
     this._user = _animal;
     return(true);
 }
 public bool StopUse(WildGround _animal)
 {
     if (Object.op_Equality((Object)_animal, (Object)null) || Object.op_Equality((Object)this._user, (Object)null) || Object.op_Inequality((Object)this._user, (Object)_animal))
     {
         return(false);
     }
     this._user = (WildGround)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._insidePoint.get_position()))
     {
         return;
     }
     this._user           = this.AddAnimalAction(this);
     this.IsCountCoolTime = Object.op_Equality((Object)this._user, (Object)null);
 }