Part:Shop System

Shops sell catching tools and food:

Use list to store them and initialize them. When the player buys the corresponding item, the corresponding bool value is set to true. When using the corresponding item, it needs to detect whether it is unlocked. If it is unlocked, it can be used normally, otherwise, the subsequent code will not be executed to achieve the restricted use.


Question:

The order in the list collection is not clear when archiving, resulting in archiving confusion


Solution:

Comment the code and set the event correctly in the button in the scene.


Make the point of the game useful, and the coherence of the game is improved.


评论

此博客中的热门博文

Part:Game export