OK, so the game I’m trying to make has a stage where the player should collect items and then place each one of them on specific locations to pass the stage. I’m confused of how to use code in order to do that.
The logic I’m trying to implement is as follows:
1- Player gets near item.
2- He interacts with item by pressing space bar.
3- item, I guess, is then destroyed but saved in the memory in order to use them later.
4- Player collects other items in the same process.
That is basically the first part.
Now, the player needs to place the items he collected as follows:
1- Player gets near platform (created before).
2- Player interacts with the platform by pressing space bar. This step should be divided:
a- If the platform is empty, game will show the player the items he collected and ask him to choose
which one to place.
b- If the platform is full, game will show the player the items available (collected already) and ask him
to either remove the placed item or replace it.
End of the second part.
Forgive me if it is confusing but I’m new to Unity and I’m really thinking of a way to figure it out but no result.