void Start() { if (bm == null) { bm = Babies.babyMerchantDict [babyMerchantName]; } GetComponentInChildren <Exit> ().GetComponent <Button> ().onClick.AddListener(Exit); GetComponentInChildren <Trade> ().GetComponent <Button> ().onClick.AddListener(merchantMenu); }
public void eatBaby(BabyMerchant bm) { MartinisPrice = bm.MartinisPrice; RecordsPrice = bm.RecordsPrice; PhonesPrice = bm.PhonesPrice; SodaPrice = bm.SodaPrice; JewelryPrice = bm.JewelryPrice; HooversPrice = bm.HooversPrice; }