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 Item item;
|
||||
|
||||
private Inventory inv;
|
||||
public Inventory inv;
|
||||
|
||||
void Start()
|
||||
{
|
||||
inv = FindObjectOfType<Inventory> ();
|
||||
giveItem (item);
|
||||
}
|
||||
|
||||
public void giveItem(Item itm)
|
||||
{
|
||||
inv.AddItem (itm);
|
||||
//inv = FindObjectOfType<Inventory> ();
|
||||
inv.AddItem (item);
|
||||
}
|
||||
|
||||
public void showItems()
|
||||
|
|
Reference in a new issue