コード例 #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);
 }
コード例 #2
0
ファイル: ItemDecayMachine.cs プロジェクト: Bruno13/TheForest
 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;
         }
     }
 }