// @TODO: // Somehow notify this class (and all other Item Quests) from // ItemManager.Inventory.AddItem/DropItem instead of using Update() public void Update() { for (int i = 0; i < questStates.Count; i++) { List <ItemToCheck> items = questStates[i].itemsToCheck; for (int j = 0; j < items.Count; j++) { if (itemManager.Inventory.Tally[items[j].item] < items[j].count) { return; } } } questNotifier.Notify(); }
public override void OnTapInput(Action action) { base.OnTapInput(action); questNotifier.Notify(); }