public void Sim1000ms(float dt) { if (!(this.IsOperational)) { return; } if (this.AmountStored < this.UserMaxCapacity) { Debug.Log("UserMaxCapacity: " + this.UserMaxCapacity.ToString()); Debug.Log("AmountStored: " + this.AmountStored.ToString()); Debug.Log("IsFull: " + this.filteredStorage.IsFull().ToString()); List <Tag> acceptedTags = this.treeFilterable.AcceptedTags; foreach (Tag tag in acceptedTags) { GameObject myFood = Edible.Instantiate(tag.Prefab()); myFood.SetActive(true); storage.Store(myFood, false, false, false, false); storage.Drop(myFood); storage.Store(myFood, false, false, false, true); } } //this.filteredStorage.FilterChanged(); this.UpdateLogicCircuit(); return; }