예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     inventory = GetComponent <scrInventory>();
     inventory.SetOwnerId(GetInstanceID());
     Items = scroItems.Instance;
     Items.GetRandomItemList(10, inventory.contents);
 }
 // Start is called before the first frame update
 void Start()
 {
     Items = scroItems.Instance;
     Items.registerInventory(this);
 }