Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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;
         }
     }
 }