Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 3: Finishing the Game Loop

Testing: With and Without Treasure

You don’t have access to this lesson

Please register or sign in to access the course content.

You should now be able to chest that, by default, nothing happens when you walk up to the dig spot, but if you check the box for Has Treasure in the dig spot’s Entity panel, it will pop up like normal. 

Once everything is confirmed to work, make hasTreasure private, so that we can only change it with code.