How husnainhaider/ar-treasure-hunt works
Treasure Hunt AR is a Unity mobile AR game: players scan a real surface, place a ship, collect treasure against a 30-second limit, and avoid the Kraken. The tree identifies likely implementation scripts for placement, treasure, ship, and enemy behavior, but no source excerpts were supplied. Accordingly, the graph maps documented gameplay stages to those paths and uses the README as relationship evidence; internal calls and asset wiring are not asserted.
Main entry points: CarBehaviour.cs Ship behavior · DrivingSurfaceManager.cs Surface scanning · PlaceObject.cs Ship placement · PackageSpawner.cs Treasure spawning
Components 10
AR interaction
- Surface scanning
Assets/Scripts/DrivingSurfaceManager.cs - Ship placement
Assets/Scripts/PlaceObject.cs - Placement reticle
Assets/Scripts/CrossHairBehavior.cs - Light estimation
Assets/Scripts/LightEstimation.cs
Game loop
- Ship behavior
Assets/Scripts/CarBehaviour.cs - Treasure spawning
Assets/Scripts/PackageSpawner.cs - Treasure behavior
Assets/Scripts/PackageBehaviour.cs
Game world
- Kraken threat
Assets/Scripts/EnnemyBehaviour.cs
Other components
- Player
- AR Foundation
Connections 7
- Player → Surface scanning: scans surroundings
- Surface scanning → Ship placement: enables placement
- Player → Ship placement: taps to spawn
- Ship placement → Ship behavior: places ship
- Ship behavior → Treasure spawning: collects treasure
- Ship behavior → Kraken threat: avoids threat
- AR Foundation → Surface scanning: supports AR scan