# uk2438/pherka architecture

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

- Interactive diagram: https://gitdiagram.com/uk2438/pherka
- Repository: https://github.com/uk2438/pherka

## Overview

Pherka is a Unity narrative adventure game. Its apparent user-to-result workflow is exploring and interacting with a scene, advancing story events and dialogue through the prologue and chapters, and receiving game-state, audiovisual, and UI feedback. The tree identifies these systems by their scripts, but no source excerpts or substantive README details were provided. Accordingly, the workflow links below are dashed and unverified; they should be checked against scene wiring and script calls.

Main entry points: [`Assets/02. Scripts/Diologues/DialogueManager.cs`](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Diologues/DialogueManager.cs) (Dialogue), [`Assets/02. Scripts/Sound/InteractiableObject.cs`](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Sound/InteractiableObject.cs) (Object Interaction), [`Assets/02. Scripts/Players/PlayerController.cs`](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Players/PlayerController.cs) (Player Control), [`Assets/02. Scripts/Chapter1/Triggers`](https://github.com/uk2438/pherka/tree/main/Assets/02.%20Scripts/Chapter1/Triggers) (Chapter Triggers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Game Runtime"]
  node_player["Player Control"]
  node_game["Game State<br/>[GameManager.cs]"]
  node_save["Save and Load<br/>[SaveLoadManager.cs]"]
  node_playerfollow["Player Follower<br/>[PlayerFollower.cs]"]
end

subgraph group_story["Story Progression"]
  node_prologue["Prologue<br/>[PrologueManager.cs]"]
  node_chapter1["Chapter One<br/>[Chapter1Manager.cs]"]
  node_chapter2["Chapter Two<br/>[Chapter2Manager.cs]"]
  node_dialogue["Dialogue<br/>[DialogueManager.cs]"]
  node_dialogueevents["Dialogue Events"]
  node_chaptertriggers["Chapter Triggers<br/>[Triggers]"]
  node_prologuetriggers["Prologue Triggers<br/>[Triggers]"]
  node_chapter2triggers["Chapter Two Triggers<br/>[Triggers]"]
end

subgraph group_interaction["World Interaction"]
  node_teleport["Teleport<br/>[TeleportManager.cs]"]
  node_interactions["Object Interaction"]
  node_doors["Door Interaction<br/>[DoorInteraction.cs]"]
end

subgraph group_presentation["Presentation"]
  node_ui["Game UI<br/>[UIManager.cs]"]
  node_cutscene["Cutscenes<br/>[CutSceneManager.cs]"]
  node_fade["Scene Fades<br/>[FadeManager.cs]"]
  node_sound["Sound<br/>[SoundManager.cs]"]
end

node_scene["Main Scene<br/>[MainScene.unity]"]
node_playeractor(("Player"))

node_playeractor -.->|"controls"| node_player
node_scene -.->|"hosts"| node_player
node_player -.->|"interacts"| node_interactions
node_interactions -.->|"activates"| node_chaptertriggers
node_interactions -.->|"activates"| node_prologuetriggers
node_interactions -.->|"activates"| node_chapter2triggers
node_chaptertriggers -.->|"advances"| node_chapter1
node_prologuetriggers -.->|"advances"| node_prologue
node_chapter2triggers -.->|"advances"| node_chapter2
node_prologue -.->|"uses"| node_dialogue
node_chapter1 -.->|"uses"| node_dialogue
node_chapter2 -.->|"uses"| node_dialogue
node_dialogue -.->|"dispatches"| node_dialogueevents
node_chaptertriggers -.->|"may route"| node_teleport
node_prologuetriggers -.->|"may route"| node_teleport
node_chapter2triggers -.->|"may route"| node_teleport
node_game -.->|"may persist"| node_save
node_player -.->|"followed by"| node_playerfollow
node_dialogue -.->|"presents"| node_ui
node_cutscene -.->|"may use"| node_fade
node_doors -.->|"may play"| node_sound

click node_player "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Players/PlayerController.cs"
click node_game "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Core/GameManager.cs"
click node_save "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Core/Save%26Load/SaveLoadManager.cs"
click node_prologue "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Prologue/PrologueManager.cs"
click node_chapter1 "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Chapter1/Chapter1Manager.cs"
click node_chapter2 "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Chapter2/Chapter2Manager.cs"
click node_dialogue "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Diologues/DialogueManager.cs"
click node_dialogueevents "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Diologues/DialogueEventManager.cs"
click node_chaptertriggers "https://github.com/uk2438/pherka/tree/main/Assets/02.%20Scripts/Chapter1/Triggers"
click node_prologuetriggers "https://github.com/uk2438/pherka/tree/main/Assets/02.%20Scripts/Prologue/Triggers"
click node_chapter2triggers "https://github.com/uk2438/pherka/tree/main/Assets/02.%20Scripts/Chapter2/Triggers"
click node_playerfollow "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Players/PlayerFollower.cs"
click node_teleport "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Core/TeleportManager.cs"
click node_interactions "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Sound/InteractiableObject.cs"
click node_doors "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Sound/DoorInteraction.cs"
click node_ui "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/UIs/UIManager.cs"
click node_cutscene "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/UIs/CutSceneManager.cs"
click node_fade "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/UIs/FadeManager.cs"
click node_sound "https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Core/SoundManager.cs"
click node_scene "https://github.com/uk2438/pherka/blob/main/Assets/01.%20Scenes/MainScene.unity"

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_player,node_game,node_save,node_playerfollow toneBlue
class node_prologue,node_chapter1,node_chapter2,node_dialogue,node_dialogueevents,node_chaptertriggers,node_prologuetriggers,node_chapter2triggers toneAmber
class node_teleport,node_interactions,node_doors toneMint
class node_ui,node_cutscene,node_fade,node_sound toneRose
class node_scene toneTeal
class node_playeractor toneIndigo
```

## Components

### Game Runtime

- [Player Control](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Players/PlayerController.cs): `Assets/02. Scripts/Players/PlayerController.cs`
- [Game State](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Core/GameManager.cs): `Assets/02. Scripts/Core/GameManager.cs`
- [Save and Load](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Core/Save%26Load/SaveLoadManager.cs): `Assets/02. Scripts/Core/Save&Load/SaveLoadManager.cs`
- [Player Follower](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Players/PlayerFollower.cs): `Assets/02. Scripts/Players/PlayerFollower.cs`

### Story Progression

- [Prologue](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Prologue/PrologueManager.cs): `Assets/02. Scripts/Prologue/PrologueManager.cs`
- [Chapter One](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Chapter1/Chapter1Manager.cs): `Assets/02. Scripts/Chapter1/Chapter1Manager.cs`
- [Chapter Two](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Chapter2/Chapter2Manager.cs): `Assets/02. Scripts/Chapter2/Chapter2Manager.cs`
- [Dialogue](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Diologues/DialogueManager.cs): `Assets/02. Scripts/Diologues/DialogueManager.cs`
- [Dialogue Events](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Diologues/DialogueEventManager.cs): `Assets/02. Scripts/Diologues/DialogueEventManager.cs`
- [Chapter Triggers](https://github.com/uk2438/pherka/tree/main/Assets/02.%20Scripts/Chapter1/Triggers): `Assets/02. Scripts/Chapter1/Triggers`
- [Prologue Triggers](https://github.com/uk2438/pherka/tree/main/Assets/02.%20Scripts/Prologue/Triggers): `Assets/02. Scripts/Prologue/Triggers`
- [Chapter Two Triggers](https://github.com/uk2438/pherka/tree/main/Assets/02.%20Scripts/Chapter2/Triggers): `Assets/02. Scripts/Chapter2/Triggers`

### World Interaction

- [Teleport](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Core/TeleportManager.cs): `Assets/02. Scripts/Core/TeleportManager.cs`
- [Object Interaction](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Sound/InteractiableObject.cs): `Assets/02. Scripts/Sound/InteractiableObject.cs`
- [Door Interaction](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Sound/DoorInteraction.cs): `Assets/02. Scripts/Sound/DoorInteraction.cs`

### Presentation

- [Game UI](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/UIs/UIManager.cs): `Assets/02. Scripts/UIs/UIManager.cs`
- [Cutscenes](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/UIs/CutSceneManager.cs): `Assets/02. Scripts/UIs/CutSceneManager.cs`
- [Scene Fades](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/UIs/FadeManager.cs): `Assets/02. Scripts/UIs/FadeManager.cs`
- [Sound](https://github.com/uk2438/pherka/blob/main/Assets/02.%20Scripts/Core/SoundManager.cs): `Assets/02. Scripts/Core/SoundManager.cs`

### Other components

- [Main Scene](https://github.com/uk2438/pherka/blob/main/Assets/01.%20Scenes/MainScene.unity): `Assets/01. Scenes/MainScene.unity`
- **Player**

## Connections

- Player → Player Control: controls
- Main Scene → Player Control: hosts
- Player Control → Object Interaction: interacts
- Object Interaction → Chapter Triggers: activates
- Object Interaction → Prologue Triggers: activates
- Object Interaction → Chapter Two Triggers: activates
- Chapter Triggers → Chapter One: advances
- Prologue Triggers → Prologue: advances
- Chapter Two Triggers → Chapter Two: advances
- Prologue → Dialogue: uses
- Chapter One → Dialogue: uses
- Chapter Two → Dialogue: uses
- Dialogue → Dialogue Events: dispatches
- Chapter Triggers → Teleport: may route
- Prologue Triggers → Teleport: may route
- Chapter Two Triggers → Teleport: may route
- Game State → Save and Load: may persist
- Player Control → Player Follower: followed by
- Dialogue → Game UI: presents
- Cutscenes → Scene Fades: may use
- Door Interaction → Sound: may play
