# laksondev/kitchen-chaos architecture

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

- Interactive diagram: https://gitdiagram.com/laksondev/kitchen-chaos
- Repository: https://github.com/laksondev/kitchen-chaos

## Overview

Kitchen Chaos is a single-player/local-multiplayer Unity cooking game. Players start or resume a timed kitchen session, use counters to prepare and plate recipe ingredients, then deliver orders for score before time expires. The README documents these gameplay stages and feedback; because no source excerpts were provided, internal call ownership and finer data flow cannot be verified, so the graph uses only documented relationships.

Main entry points: [`Assets/Scripts/Counters`](https://github.com/laksondev/kitchen-chaos/tree/main/Assets/Scripts/Counters) (Kitchen counters), [`Assets/Scripts/DeliveryManager.cs`](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/DeliveryManager.cs) (Order delivery), [`Assets/Scripts/UI`](https://github.com/laksondev/kitchen-chaos/tree/main/Assets/Scripts/UI) (Gameplay UI), [`Assets/Scripts/UI/MainMenuUI.cs`](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/UI/MainMenuUI.cs) (Menu and options)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flow["Game flow"]
  node_menu["Menu and options<br/>[MainMenuUI.cs]"]
  node_scene_flow["Scene loading<br/>[Loader.cs]"]
  node_game_state["Game state<br/>[GameManager.cs]"]
  node_timing["Countdown and pause"]
end

subgraph group_kitchen["Kitchen gameplay"]
  node_input["Player input<br/>[PlayerInput.cs]"]
  node_player_control["Player control<br/>[Player.cs]"]
  node_counters["Kitchen counters"]
  node_ingredients["Kitchen objects<br/>[KitchenObject.cs]"]
  node_cutting["Ingredient cutting<br/>[CuttingCounter.cs]"]
  node_cooking["Cooking and burning<br/>[StoveCounter.cs]"]
  node_plating["Plate assembly"]
end

subgraph group_orders["Recipes and delivery"]
  node_recipes["Recipe definitions<br/>[RecipeSO.cs]"]
  node_delivery["Order delivery<br/>[DeliveryManager.cs]"]
  node_score["Delivery results"]
end

subgraph group_feedback["Player feedback"]
  node_game_ui["Gameplay UI"]
  node_audio["Game audio<br/>[SoundManager.cs]"]
end

node_player(("Player"))

node_player -->|"starts game"| node_menu
node_menu -.->|"starts session"| node_scene_flow
node_player -->|"provides controls"| node_input
node_input -.->|"controls movement"| node_player_control
node_player_control -->|"interacts with"| node_counters
node_counters -->|"handle pickup"| node_ingredients
node_counters -->|"support chopping"| node_cutting
node_counters -->|"support cooking"| node_cooking
node_player -->|"assembles meals"| node_plating
node_recipes -->|"define orders"| node_delivery
node_player -->|"delivers meals"| node_delivery
node_delivery -->|"tracks results"| node_score
node_game_state -.->|"coordinates timed play"| node_timing
node_timing -->|"shows countdown"| node_game_ui
node_cutting -->|"shows progress"| node_game_ui
node_cooking -->|"shows progress"| node_game_ui
node_player -.->|"triggers feedback"| node_audio

click node_menu "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/UI/MainMenuUI.cs"
click node_scene_flow "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/Loader.cs"
click node_game_state "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/GameManager.cs"
click node_input "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/PlayerInput.cs"
click node_player_control "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/Player.cs"
click node_counters "https://github.com/laksondev/kitchen-chaos/tree/main/Assets/Scripts/Counters"
click node_ingredients "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/KitchenObject.cs"
click node_cutting "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/Counters/CuttingCounter.cs"
click node_cooking "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/Counters/StoveCounter.cs"
click node_plating "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/PlateKitchenObject.cs"
click node_recipes "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/ScriptableObjects/RecipeSO.cs"
click node_delivery "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/DeliveryManager.cs"
click node_score "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/UI/DeliveryResultUI.cs"
click node_timing "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/UI/GamePlayingClockUI.cs"
click node_game_ui "https://github.com/laksondev/kitchen-chaos/tree/main/Assets/Scripts/UI"
click node_audio "https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/SoundManager.cs"

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_menu,node_scene_flow,node_game_state,node_timing toneBlue
class node_input,node_player_control,node_counters,node_ingredients,node_cutting,node_cooking,node_plating toneAmber
class node_recipes,node_delivery,node_score toneMint
class node_game_ui,node_audio toneRose
class node_player toneIndigo
```

## Components

### Game flow

- [Menu and options](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/UI/MainMenuUI.cs): `Assets/Scripts/UI/MainMenuUI.cs`
- [Scene loading](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/Loader.cs): `Assets/Scripts/Loader.cs`
- [Game state](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/GameManager.cs): `Assets/Scripts/GameManager.cs`
- [Countdown and pause](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/UI/GamePlayingClockUI.cs): `Assets/Scripts/UI/GamePlayingClockUI.cs`

### Kitchen gameplay

- [Player input](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/PlayerInput.cs): `Assets/Scripts/PlayerInput.cs`
- [Player control](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/Player.cs): `Assets/Scripts/Player.cs`
- [Kitchen counters](https://github.com/laksondev/kitchen-chaos/tree/main/Assets/Scripts/Counters): `Assets/Scripts/Counters`
- [Kitchen objects](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/KitchenObject.cs): `Assets/Scripts/KitchenObject.cs`
- [Ingredient cutting](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/Counters/CuttingCounter.cs): `Assets/Scripts/Counters/CuttingCounter.cs`
- [Cooking and burning](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/Counters/StoveCounter.cs): `Assets/Scripts/Counters/StoveCounter.cs`
- [Plate assembly](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/PlateKitchenObject.cs): `Assets/Scripts/PlateKitchenObject.cs`

### Recipes and delivery

- [Recipe definitions](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/ScriptableObjects/RecipeSO.cs): `Assets/Scripts/ScriptableObjects/RecipeSO.cs`
- [Order delivery](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/DeliveryManager.cs): `Assets/Scripts/DeliveryManager.cs`
- [Delivery results](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/UI/DeliveryResultUI.cs): `Assets/Scripts/UI/DeliveryResultUI.cs`

### Player feedback

- [Gameplay UI](https://github.com/laksondev/kitchen-chaos/tree/main/Assets/Scripts/UI): `Assets/Scripts/UI`
- [Game audio](https://github.com/laksondev/kitchen-chaos/blob/main/Assets/Scripts/SoundManager.cs): `Assets/Scripts/SoundManager.cs`

### Other components

- **Player**

## Connections

- Player → Menu and options: starts game (evidence: `README.md`)
- Menu and options → Scene loading: starts session
- Player → Player input: provides controls (evidence: `README.md`)
- Player input → Player control: controls movement
- Player control → Kitchen counters: interacts with (evidence: `README.md`)
- Kitchen counters → Kitchen objects: handle pickup (evidence: `README.md`)
- Kitchen counters → Ingredient cutting: support chopping (evidence: `README.md`)
- Kitchen counters → Cooking and burning: support cooking (evidence: `README.md`)
- Player → Plate assembly: assembles meals (evidence: `README.md`)
- Recipe definitions → Order delivery: define orders (evidence: `README.md`)
- Player → Order delivery: delivers meals (evidence: `README.md`)
- Order delivery → Delivery results: tracks results (evidence: `README.md`)
- Game state → Countdown and pause: coordinates timed play
- Countdown and pause → Gameplay UI: shows countdown (evidence: `README.md`)
- Ingredient cutting → Gameplay UI: shows progress (evidence: `README.md`)
- Cooking and burning → Gameplay UI: shows progress (evidence: `README.md`)
- Player → Game audio: triggers feedback
