Merged alex + darrel
This commit is contained in:
parent
7ae3db37e5
commit
9e5d3feec0
2 changed files with 3 additions and 8 deletions
Binary file not shown.
|
@ -9,17 +9,12 @@ public class MonsterManager : MonoBehaviour {
|
||||||
public GameObject inventory;
|
public GameObject inventory;
|
||||||
public Item item;
|
public Item item;
|
||||||
|
|
||||||
private Inventory inv;
|
public Inventory inv;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
inv = FindObjectOfType<Inventory> ();
|
//inv = FindObjectOfType<Inventory> ();
|
||||||
giveItem (item);
|
inv.AddItem (item);
|
||||||
}
|
|
||||||
|
|
||||||
public void giveItem(Item itm)
|
|
||||||
{
|
|
||||||
inv.AddItem (itm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showItems()
|
public void showItems()
|
||||||
|
|
Reference in a new issue