public void Increment(IItemObservable item) { inventory[item]++; Text itemProgressNumber = GameObject.Find("ItemAmountText").GetComponent <Text>(); itemProgressNumber.text = inventory[item].ToString(); MissionObserver.GetInstance().IsComplete(item); }
public static MissionObserver GetInstance() { if (Instance == null) { Instance = new MissionObserver(); } return(Instance); }