示例#1
0
    public void Increment(IItemObservable item)
    {
        inventory[item]++;
        Text itemProgressNumber = GameObject.Find("ItemAmountText").GetComponent <Text>();

        itemProgressNumber.text = inventory[item].ToString();
        MissionObserver.GetInstance().IsComplete(item);
    }
示例#2
0
 public static MissionObserver GetInstance()
 {
     if (Instance == null)
     {
         Instance = new MissionObserver();
     }
     return(Instance);
 }