public bool DecayNext() { if (this._commands.Count > 0) { ItemDecayMachine.ItemDecayCommand itemDecayCommand = this._commands[0]; this._commands.RemoveAt(0); itemDecayCommand._diiv.Decay(); return(true); } return(false); }
private void Update() { if (this._commands[0]._decayTime < Time.time) { ItemDecayMachine.ItemDecayCommand itemDecayCommand = this._commands[0]; this._commands.RemoveAt(0); itemDecayCommand._diiv.Decay(); if (this._commands.Count == 0) { base.enabled = false; } } }