Initial Preparation[]
- First, in your Project Hierarchy, find "Gameplay/Win Trigger" and Right-click to delete it. This is the old trigger that governs the win condition of the game that you started with. We'll be recreating the Win Trigger that the "Barebones Game" uses by default (collecting the Golden Pineapple) from the ground up. Yes, this means if you started with the "Barebones Game" for this tutorial, you just deleted the exact same thing we'll ultimately be making. Don't think about it too hard... The point is, we need to delete this Asset from our Project Hierarchy so it doesn't conflict with our new work.
- Right-click on the Gameplay entity in your Project Hierarchy and select "Create Empty" from the dropdown that appears, rename to “Win Pineapple”. Search for “Trigger” in the Library, and drag and drop the “TriggerVolume” Script onto the “Win Pineapple” entity you just made.
|