Exemple #1
0
 public void StartShopping(PlayerModelController pmc)
 {
     this.pmc = pmc;
     foreach (EnemyController ec  in GameObject.FindObjectsOfType <EnemyController>())
     {
         ec.Pause(true);
     }
     pmc.GetComponentInParent <ItemManager> ().Take("Shop Key");
     pmc.enabled = false;
     curshop     = Instantiate(shop, new Vector3(10000, 0, 10000), Quaternion.identity);
     curshop.gameObject.GetComponentInChildren <ShopUI> ().pmc = pmc;
 }
Exemple #2
0
 protected override void Handle(PlayerModelController pmc)
 {
     pmc.GetComponentInParent <ItemManager> ().AddItem(potionitem);
     base.consumed = true;
     Destroy(gameObject);
 }