
Secrets Of Mansions
Inventory Puzzle game.
Year:
2025
Timeframe:
3 Weeks
Tools:
Unity, C#


Overview
A story-driven puzzle game inspired by classics like Monkey Island. Players explore a mansion, find items, and solve puzzles to uncover a mystery.
My Work
1. Built a circular radial inventory in Unity with four slot types (base, storage, craftable, result) — items dynamically instantiate as draggable UI elements on pickup and assign to the next available slot automatically. 2. Implemented drag-and-drop using Unity's IBeginDragHandler/IEndDragHandler — items can be dropped onto slots or directly onto 3D world objects via screen-to-world raycast, with shoot, interact, and return behaviours resolved in one unified handler. 3. Implemented item state tracking via ItemData — items like the pistol exist in multiple states (unloaded → loaded) that persist across interactions and sync with PlayerInventoryData. 4. Built a two-slot crafting system with ID-based recipe matching — CombinedItemId checked against the other slot's item ID valid matches fire an OnItemCrafted event and clear both slots, invalid combinations silently return items. 5. Designed the stove and bowl puzzle using the crafting system — correct ingredient combinations produce a result item that unlocks story progression, all puzzle logic data-driven with no hardcoded item behaviour.



