hey guys, im looking at creating a box method inventory where if slot 1 is used it will automatically go to box 2, im not really sure how to go around doing this as it seems quite confusing, i’ve brought the inventory tutorial from unity tutorials but they dont really explain it.
also im wondering how its possible to tell what item has been put in slot 1, would i use an array for an inventory then have them in numerical order??
ill try my best to write some pusedo script below =)…
var slot1taken = true;
var slot1 = texture (location,location);
var slot2 = texture (location, location);
var item1: Transform;
var slot2taken = false;
function unknown () {
if(slot1 is taken) {
what item is in it;
add item to second slot;
what item is in second slot;
}}