# d1zzyxx/full-lune architecture

> Architecture diagram of the GitHub repository d1zzyxx/full-lune, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-06-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/d1zzyxx/full-lune
- Repository: https://github.com/d1zzyxx/full-lune

## Overview

1. **Project type and runtime**
   - This is a **Unity** game project for **smartphones**.
   - The architecture is scene-driven and built around Unity components, prefabs, ScriptableObjects, and manager-style MonoBehaviours.
   - The repo is content-heavy: most logic is in `Assets/Scripts`, while art, audio, UI prefabs, and scenes carry the gameplay structure.

2. **Main play areas / scene boundaries**
   - The game is split into distinct scene groups:
     - `Assets/Scenes/Menu` for startup and education screens.
     - `Assets/Scenes/Free zone` for exploration areas like `Village`, `HolyOFLune`, and `TempleOfSky`.
     - `Assets/Scenes/Puzzle` for minigames: `3Match` and `Mirrors`.
   - This suggests a hub-and-spoke flow where the player moves from menu/tutorial into free exploration and then into minigame scenes.

3. **Core game state managers**
   - `Assets/Scripts/ManagersGame` contains the main orchestration layer:
     - `SceneManager/SceneTransitionManager`, `SceneInitializer`, and `LevelSettings` handle scene loading/setup.
     - `AudioManager` centralizes music and likely SFX playback.
     - `UIManager` handles global UI visibility/state.
     - `MoonPhaseManager` and `MenuStatue` indicate a world progression or puzzle-state system tied to lunar phases.
     - `EducationManager` likely drives tutorial/onboarding.
   - These managers form the cross-scene backbone and reduce direct coupling between gameplay systems.

4. **Player control and mobile input**
   - Mobile movement is handled using the included **Joystick Pack** asset.
   - The joystick package provides reusable control prefabs (`Fixed`, `Floating`, `Dynamic`, `Variable`) and input scripts.
   - Animation assets in `Assets/Animations/Player` show four-direction movement states (`WalkFront/Back/Left/Right`, `IdleFront`), so the player is a top-down character controlled by touch input and animated based on direction/movement.

5. **Exploration and interaction system**
   - `Assets/Scripts/Interaction` defines the interaction framework:
     - `InteractionManager` coordinates nearby interactable targets.
     - `InteractionObject` is the base contract for world interactables.
     - Concrete objects include `Altar`, `RoadSing`, `Statue`, and `Store`.
   - This creates a boundary between free-roam movement and context actions like opening dialogue, entering puzzles, buying items, or triggering story events.

6. **Inventory and item data**
   - `Assets/Scripts/ItemScripts/Inventory` implements inventory UI/state with `Inventory`, `InventorySlot`, and `ItemInfo`.
   - `Assets/Scripts/ItemScripts/ItemCollection` contains item definitions and registration logic via `Item` and `ItemRegistry`.
   - Item assets live in `Assets/Resources/ItemCollection`, which means items are loaded as Unity Resources and can be resolved dynamically at runtime.
   - Architecture-wise, items are data-driven and decoupled from the scene via ScriptableObject-like assets.

7. **Store / trading subsystem**
   - `Assets/Scripts/ItemScripts/Store` contains `StoreManager` and `StoreSlot`, which likely power a shop or trade interface.
   - The interaction layer references the store object in the world, while the store subsystem handles inventory exchange and UI slot updates.
   - This is a separate gameplay boundary from the core inventory, but clearly connected to it.

8. **Minigame subsystem**
   - Minigames are isolated under `Assets/Scripts/Minigames` and have dedicated scenes and prefabs.
   - Two minigame families are present:
     - **3-match puzzle**: `MatchManager`, `GridChecker`, `SpawnController`, `RefillGrid`, `MoveGem`, `GemData`.
     - **Mirror / ray puzzle**: `Mirror`, `RaySystem`, `RayPointReceptionAnim`.
   - `EndMiniGame` and `MenuExit` suggest a shared completion/exit flow back to the main game or menu.
   - This is a clean separation: minigame logic is scene-local, while completion likely reports back through shared managers or scene transition logic.

9. **UI and menu flow**
   - UI is implemented with prefabs under `Assets/Prefabs/UI`, including buttons, hints, menu panels, inventory slots, and win/exit dialogs.
   - Animations under `Assets/Animations/Menu` and `Assets/Animations/Hint` indicate dynamic UI presentation, not static screens only.
   - Text rendering uses **TextMesh Pro**, which is standard for crisp mobile UI and in-game text.
   - The menu scene structure suggests a front-end flow from `StartScene` to tutorial/education and then into gameplay.

10. **World content and environment composition**
   - The game world is assembled from many prefabs:
     - Village buildings, props, plants, stones, gates, altars, and decorative elements.
     - `SpawnPoints` and `LevelManagerStatic` imply scripted placement and area configuration.
   - Tile palette assets and environment prefabs indicate the world is built from reusable modular art rather than procedural generation.
   - This points to handcrafted, scene-authored environments with strong prefab reuse.

11. **Audio and presentation**
   - Audio is structured into music and SFX folders with distinct tracks for menu, village, temple, holy area, and stone interaction sounds.
   - `AudioManager` likely switches music based on scene or zone and routes SFX for interaction feedback.
   - Custom shaders/materials and sprite shadow assets indicate visual styling is part of the content pipeline, especially for pixel-art presentation.

12. **Save and persistence**
   - `Assets/Scripts/ManagersGame/SaveScripts` contains `GameSaveData` and `SaveManager`.
   - This subsystem likely persists player progression, item collection, puzzle completion, or world state across sessions.
   - It is a key architectural boundary because it ties together scene state, inventory, and progression systems without embedding persistence logic inside gameplay objects.

13. **Content and third-party dependencies**
   - The repo includes imported assets that materially shape the architecture:
     - **Joystick Pack** for touch input.
     - **Cainos Pixel Art Top Down - Basic** for environment/prop systems and helper scripts.
     - **TextMesh Pro** for text UI.
   - These packages reduce custom code in input and visual content layers while the custom logic focuses on progression, interactions, and minigames.

14. **Likely end-to-end data flow**
   - The player starts in a menu scene, enters an exploration scene, moves via joystick input, interacts with world objects, and opens UI or minigames.
   - Item and puzzle outcomes update shared state through managers and are saved by the save system.
   - Audio, UI, and scene transitions are coordinated centrally rather than by individual gameplay objects.

Main entry points: [`Assets/Scripts/ManagersGame/SceneManager/SceneTransitionManager.cs`](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SceneManager/SceneTransitionManager.cs) (Scene Transition), [`Assets/Scripts/ManagersGame/SceneManager/SceneIntializer.cs`](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SceneManager/SceneIntializer.cs) (Scene Init), [`Assets/Scripts/Interaction/InteractionObject.cs`](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Interaction/InteractionObject.cs) (Interactable Base), [`Assets/Scripts/ManagersGame/AudioManager.cs`](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/AudioManager.cs) (Audio Manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_group_core["Core runtime"]
  node_scene_transition["Scene Transition<br/>scene flow"]
  node_scene_initializer["Scene Init<br/>scene setup<br/>[SceneIntializer.cs]"]
  node_level_settings["Level Settings<br/>scene config<br/>[LevelSettings.cs]"]
  node_save_manager["Save Manager<br/>persistence<br/>[SaveManager.cs]"]
  node_game_save_data["Save Data<br/>save model<br/>[GameSaveData.cs]"]
  node_education_manager["Education Manager<br/>tutorial flow"]
  node_moon_phase_manager["Moon Phase<br/>world state"]
end

subgraph group_group_world["Exploration world"]
  node_start_scene["Start Scene<br/>menu scene<br/>[StartScene.unity]"]
  node_education_scene["Education Scene<br/>menu scene"]
  node_village_scene["Village<br/>free-zone scene<br/>[Village.unity]"]
  node_holy_scene["Holy Area<br/>free-zone scene<br/>[HolyOFLune.unity]"]
  node_temple_scene["Temple<br/>free-zone scene<br/>[TempleOfSky.unity]"]
  node_interaction_manager["Interaction Manager<br/>interaction system"]
  node_interaction_object["Interactable Base<br/>interaction contract"]
  node_inventory["Inventory<br/>item system<br/>[Inventory.cs]"]
  node_item_registry["Item Registry<br/>item catalog<br/>[ItemRegistry.cs]"]
  node_store_manager["Store Manager<br/>trading system<br/>[StoreManager.cs]"]
end

subgraph group_group_puzzle["Minigames"]
  node_three_match["3-Match<br/>puzzle runtime<br/>[MatchManager.cs]"]
  node_mirror_puzzle["Mirror Puzzle<br/>puzzle runtime<br/>[RaySystem.cs]"]
  node_minigame_exit["Minigame Exit<br/>completion flow<br/>[EndMiniGame.cs]"]
end

subgraph group_group_ui["Presentation"]
  node_audio_manager["Audio Manager<br/>audio service<br/>[AudioManager.cs]"]
  node_ui_manager["UI Manager<br/>ui service<br/>[UIManager.cs]"]
  node_player_input["Joystick Pack<br/>touch input"]
  node_player_anim["Player Animations<br/>animation set"]
end

subgraph group_group_content["Content pipeline"]
  node_ui_prefabs["UI Prefabs<br/>ui content"]
  node_world_prefabs["World Prefabs<br/>environment content"]
  node_item_resources["Item Assets<br/>resource content"]
end

node_start_scene -->|"starts flow"| node_scene_transition
node_education_scene -->|"tutorials"| node_education_manager
node_scene_transition -->|"loads"| node_scene_initializer
node_scene_initializer -->|"applies"| node_level_settings
node_scene_initializer -->|"configures"| node_audio_manager
node_scene_initializer -->|"configures"| node_ui_manager
node_scene_initializer -->|"restores"| node_moon_phase_manager
node_save_manager -->|"serializes"| node_game_save_data
node_save_manager -->|"restores flow"| node_scene_transition
node_village_scene -->|"uses"| node_interaction_manager
node_holy_scene -->|"uses"| node_interaction_manager
node_temple_scene -->|"uses"| node_interaction_manager
node_interaction_manager -->|"targets"| node_interaction_object
node_interaction_object -.->|"gives items"| node_inventory
node_interaction_object -.->|"opens shop"| node_store_manager
node_interaction_object -.->|"enters scenes"| node_scene_transition
node_inventory -->|"resolves"| node_item_registry
node_item_registry -->|"loads from"| node_item_resources
node_ui_prefabs -->|"driven by"| node_ui_manager
node_player_input -->|"moves player"| node_village_scene
node_player_anim -->|"reflects"| node_player_input
node_three_match -->|"returns via"| node_minigame_exit
node_mirror_puzzle -->|"returns via"| node_minigame_exit
node_three_match -.->|"switches scene"| node_scene_transition
node_mirror_puzzle -.->|"switches scene"| node_scene_transition
node_world_prefabs -->|"builds"| node_village_scene
node_world_prefabs -->|"builds"| node_holy_scene
node_world_prefabs -->|"builds"| node_temple_scene
node_audio_manager -->|"plays theme"| node_village_scene
node_audio_manager -->|"plays theme"| node_holy_scene
node_audio_manager -->|"plays theme"| node_temple_scene

click node_start_scene "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scenes/Menu/StartScene.unity"
click node_education_scene "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scenes/Menu/EducationScene.unity"
click node_village_scene "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scenes/Free zone/Village.unity"
click node_holy_scene "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scenes/Free zone/HolyOFLune.unity"
click node_temple_scene "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scenes/Free zone/TempleOfSky.unity"
click node_scene_transition "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SceneManager/SceneTransitionManager.cs"
click node_scene_initializer "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SceneManager/SceneIntializer.cs"
click node_level_settings "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SceneManager/LevelSettings.cs"
click node_save_manager "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SaveScripts/SaveManager.cs"
click node_game_save_data "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SaveScripts/GameSaveData.cs"
click node_audio_manager "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/AudioManager.cs"
click node_ui_manager "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/UIManager.cs"
click node_education_manager "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/EducationManager.cs"
click node_moon_phase_manager "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/MoonPhaseManager.cs"
click node_interaction_manager "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Interaction/InteractionManager.cs"
click node_interaction_object "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Interaction/InteractionObject.cs"
click node_inventory "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ItemScripts/Inventory/Inventory.cs"
click node_item_registry "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ItemScripts/ItemCollection/ItemRegistry.cs"
click node_store_manager "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ItemScripts/Store/StoreManager.cs"
click node_three_match "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Minigames/3Match/MatchManager.cs"
click node_mirror_puzzle "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Minigames/Mirrors/RaySystem.cs"
click node_minigame_exit "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Minigames/EndMiniGame.cs"
click node_player_input "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Joystick Pack/Scripts/Joysticks/VariableJoystick.cs"
click node_player_anim "https://github.com/d1zzyxx/full-lune/blob/main/Assets/Animations/Player/PlayerController.controller"
click node_ui_prefabs "https://github.com/d1zzyxx/full-lune/tree/main/Assets/Prefabs/UI"
click node_world_prefabs "https://github.com/d1zzyxx/full-lune/tree/main/Assets/Prefabs"
click node_item_resources "https://github.com/d1zzyxx/full-lune/tree/main/Assets/Resources/ItemCollection"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_scene_transition,node_scene_initializer,node_level_settings,node_save_manager,node_game_save_data,node_education_manager,node_moon_phase_manager toneBlue
class node_start_scene,node_education_scene,node_village_scene,node_holy_scene,node_temple_scene,node_interaction_manager,node_interaction_object,node_inventory,node_item_registry,node_store_manager toneAmber
class node_three_match,node_mirror_puzzle,node_minigame_exit toneMint
class node_audio_manager,node_ui_manager,node_player_input,node_player_anim toneRose
class node_ui_prefabs,node_world_prefabs,node_item_resources toneIndigo
```

## Components

### Core runtime

Cross-scene managers, persistence, and scene orchestration.

- [Scene Transition](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SceneManager/SceneTransitionManager.cs): scene flow · Loads and swaps scenes across menu, exploration, and puzzles. · `Assets/Scripts/ManagersGame/SceneManager/SceneTransitionManager.cs`
- [Scene Init](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SceneManager/SceneIntializer.cs): scene setup · Bootstraps per-scene configuration and level settings. · `Assets/Scripts/ManagersGame/SceneManager/SceneIntializer.cs`
- [Level Settings](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SceneManager/LevelSettings.cs): scene config · Per-level configuration data used during initialization. · `Assets/Scripts/ManagersGame/SceneManager/LevelSettings.cs`
- [Save Manager](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SaveScripts/SaveManager.cs): persistence · Stores and restores game progression data. · `Assets/Scripts/ManagersGame/SaveScripts/SaveManager.cs`
- [Save Data](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/SaveScripts/GameSaveData.cs): save model · Serializable progression state for persistence. · `Assets/Scripts/ManagersGame/SaveScripts/GameSaveData.cs`
- [Education Manager](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/EducationManager.cs): tutorial flow · Drives onboarding and tutorial progression. · `Assets/Scripts/ManagersGame/EducationManager.cs`
- [Moon Phase](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/MoonPhaseManager.cs): world state · Tracks lunar progression and related gameplay state. · `Assets/Scripts/ManagersGame/MoonPhaseManager.cs`

### Exploration world

Menu, free-zone scenes, and world interaction systems.

- [Start Scene](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scenes/Menu/StartScene.unity): menu scene · Entry point for the game flow. · `Assets/Scenes/Menu/StartScene.unity`
- [Education Scene](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scenes/Menu/EducationScene.unity): menu scene · Tutorial and onboarding scene. · `Assets/Scenes/Menu/EducationScene.unity`
- [Village](https://github.com/d1zzyxx/full-lune/blob/HEAD/Assets/Scenes/Free%20zone/Village.unity): free-zone scene · Main exploration area built from prefab content. · `Assets/Scenes/Free zone/Village.unity`
- [Holy Area](https://github.com/d1zzyxx/full-lune/blob/HEAD/Assets/Scenes/Free%20zone/HolyOFLune.unity): free-zone scene · Exploration scene tied to lunar or ritual progression. · `Assets/Scenes/Free zone/HolyOFLune.unity`
- [Temple](https://github.com/d1zzyxx/full-lune/blob/HEAD/Assets/Scenes/Free%20zone/TempleOfSky.unity): free-zone scene · Exploration scene with temple-themed progression. · `Assets/Scenes/Free zone/TempleOfSky.unity`
- [Interaction Manager](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Interaction/InteractionManager.cs): interaction system · Finds and coordinates nearby interactable objects. · `Assets/Scripts/Interaction/InteractionManager.cs`
- [Interactable Base](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Interaction/InteractionObject.cs): interaction contract · Base contract for world interaction targets. · `Assets/Scripts/Interaction/InteractionObject.cs`
- [Inventory](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ItemScripts/Inventory/Inventory.cs): item system · Player item storage and inventory UI state. · `Assets/Scripts/ItemScripts/Inventory/Inventory.cs`
- [Item Registry](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ItemScripts/ItemCollection/ItemRegistry.cs): item catalog · Registers item definitions loaded from resources. · `Assets/Scripts/ItemScripts/ItemCollection/ItemRegistry.cs`
- [Store Manager](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ItemScripts/Store/StoreManager.cs): trading system · Handles shop and exchange UI/state. · `Assets/Scripts/ItemScripts/Store/StoreManager.cs`

### Minigames

Scene-local puzzle systems and their shared exit flow.

- [3-Match](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Minigames/3Match/MatchManager.cs): puzzle runtime · Match-3 puzzle logic and grid lifecycle. · `Assets/Scripts/Minigames/3Match/MatchManager.cs`
- [Mirror Puzzle](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Minigames/Mirrors/RaySystem.cs): puzzle runtime · Ray and mirror puzzle logic. · `Assets/Scripts/Minigames/Mirrors/RaySystem.cs`
- [Minigame Exit](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/Minigames/EndMiniGame.cs): completion flow · Shared completion and return path from minigames. · `Assets/Scripts/Minigames/EndMiniGame.cs`

### Presentation

UI, animations, audio, and mobile input layers.

- [Audio Manager](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/AudioManager.cs): audio service · Central music and SFX playback across scenes. · `Assets/Scripts/ManagersGame/AudioManager.cs`
- [UI Manager](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Scripts/ManagersGame/UIManager.cs): ui service · Controls global UI visibility and screen state. · `Assets/Scripts/ManagersGame/UIManager.cs`
- [Joystick Pack](https://github.com/d1zzyxx/full-lune/blob/HEAD/Assets/Joystick%20Pack/Scripts/Joysticks/VariableJoystick.cs): touch input · Imported mobile joystick controls used for player movement. · `Assets/Joystick Pack/Scripts/Joysticks/VariableJoystick.cs`
- [Player Animations](https://github.com/d1zzyxx/full-lune/blob/main/Assets/Animations/Player/PlayerController.controller): animation set · Directional walk and idle animations for the mobile player. · `Assets/Animations/Player/PlayerController.controller`

### Content pipeline

Prefabs, resources, tiles, and imported assets that compose the game.

- [UI Prefabs](https://github.com/d1zzyxx/full-lune/tree/main/Assets/Prefabs/UI): ui content · Buttons, menus, slots, hints, and dialogs reused across scenes. · `Assets/Prefabs/UI`
- [World Prefabs](https://github.com/d1zzyxx/full-lune/tree/main/Assets/Prefabs): environment content · Handcrafted village, props, and spawn content for scenes. · `Assets/Prefabs`
- [Item Assets](https://github.com/d1zzyxx/full-lune/tree/main/Assets/Resources/ItemCollection): resource content · Runtime-loadable item definitions stored under Resources. · `Assets/Resources/ItemCollection`

## Connections

- Start Scene → Scene Transition: starts flow · Launches into the shared scene-loading pipeline.
- Education Scene → Education Manager: tutorials · Onboarding scene uses tutorial progression logic.
- Scene Transition → Scene Init: loads · Transitions trigger scene setup after loading.
- Scene Init → Level Settings: applies · Per-scene settings are applied during initialization.
- Scene Init → Audio Manager: configures · Scene setup selects or resets audio context.
- Scene Init → UI Manager: configures · Scene setup restores or adjusts UI state.
- Scene Init → Moon Phase: restores · World progression state is rehydrated on load.
- Save Manager → Save Data: serializes · Persistence uses a dedicated save data model.
- Save Manager → Scene Transition: restores flow · Saved state influences what scene or state loads next.
- Village → Interaction Manager: uses · Exploration scene enables world interactions.
- Holy Area → Interaction Manager: uses · Exploration scene enables world interactions.
- Temple → Interaction Manager: uses · Exploration scene enables world interactions.
- Interaction Manager → Interactable Base: targets · Nearby objects implement a common interaction contract.
- Interactable Base → Inventory: gives items · Some interactions award or consume items.
- Interactable Base → Store Manager: opens shop · Store interactions hand off to the trading subsystem.
- Interactable Base → Scene Transition: enters scenes · Certain objects likely trigger puzzle or area transitions.
- Inventory → Item Registry: resolves · Inventory entries map to registered item definitions.
- Item Registry → Item Assets: loads from · Item definitions are pulled from Resources at runtime.
- UI Prefabs → UI Manager: driven by · UI manager controls reusable menu and dialog prefabs.
- Joystick Pack → Village: moves player · Touch controls drive exploration movement in free zones.
- Player Animations → Joystick Pack: reflects · Animation state follows joystick-driven movement.
- 3-Match → Minigame Exit: returns via · Puzzle completion exits back to the main flow.
- Mirror Puzzle → Minigame Exit: returns via · Puzzle completion exits back to the main flow.
- 3-Match → Scene Transition: switches scene · Minigame completion likely reports through scene flow.
- Mirror Puzzle → Scene Transition: switches scene · Minigame completion likely reports through scene flow.
- World Prefabs → Village: builds · Scene content is assembled from environment prefabs.
- World Prefabs → Holy Area: builds · Scene content is assembled from environment prefabs.
- World Prefabs → Temple: builds · Scene content is assembled from environment prefabs.
- Audio Manager → Village: plays theme · Music changes with the active area.
- Audio Manager → Holy Area: plays theme · Music changes with the active area.
- Audio Manager → Temple: plays theme · Music changes with the active area.
