Ejemplo n.º 1
0
 public bool SetUse(WildMecha _mecha)
 {
     if (Object.op_Equality((Object)_mecha, (Object)null) || Object.op_Inequality((Object)this._user, (Object)null) && Object.op_Inequality((Object)this._user, (Object)_mecha))
     {
         return(false);
     }
     this._user = _mecha;
     return(true);
 }
Ejemplo n.º 2
0
 public bool StopUse(WildMecha _mecha)
 {
     if (Object.op_Equality((Object)_mecha, (Object)null) || Object.op_Equality((Object)this._user, (Object)null) || Object.op_Inequality((Object)this._user, (Object)_mecha))
     {
         return(false);
     }
     this._user = (WildMecha)null;
     this.SetCoolTime();
     return(true);
 }
Ejemplo n.º 3
0
 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))
     {
         return;
     }
     this._user           = this.AddAnimalAction(this);
     this.IsCountCoolTime = Object.op_Equality((Object)this._user, (Object)null);
 }