# chuan-dev086/unityfirstgame architecture

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

- Interactive diagram: https://gitdiagram.com/chuan-dev086/unityfirstgame
- Repository: https://github.com/chuan-dev086/unityfirstgame

## Overview

The tree indicates a Unity game project with player movement and health, enemy AI, bullets, and camera shake. With no README or source excerpts, the exact gameplay loop, component calls, and scene wiring cannot be verified; the diagram therefore shows the identifiable runtime components without speculative connections. Unity scene, input-action, and prefab assets are included as runtime configuration/content, not as evidence of specific interactions.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_player["Player"]
  node_movement["Player Movement<br/>[PlayerMovement.cs]"]
  node_health["Player Health<br/>[PlayerHealth.cs]"]
  node_input["Input Actions"]
end

subgraph group_combat["Combat"]
  node_enemy["Enemy AI<br/>[EnemyAI.cs]"]
  node_bullet["Bullet Logic<br/>[Bullet.cs]"]
  node_bullet_prefab["Bullet Prefab<br/>[Bullet.prefab]"]
end

subgraph group_presentation["Presentation"]
  node_camera_shake["Camera Shake<br/>[CameraShake.cs]"]
  node_scene["Sample Scene<br/>[SampleScene.unity]"]
end

node_player_actor(("Player"))

click node_movement "https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/PlayerMovement.cs"
click node_health "https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/PlayerHealth.cs"
click node_input "https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/Settings/InputSystem_Actions.inputactions"
click node_enemy "https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/EnemyAI.cs"
click node_bullet "https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/Bullet.cs"
click node_bullet_prefab "https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/Bullet.prefab"
click node_camera_shake "https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/CameraShake.cs"
click node_scene "https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/Scenes/SampleScene.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_movement,node_health,node_input toneBlue
class node_enemy,node_bullet,node_bullet_prefab toneAmber
class node_camera_shake,node_scene toneMint
class node_player_actor toneIndigo
```

## Components

### Player

- [Player Movement](https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/PlayerMovement.cs): `Assets/PlayerMovement.cs`
- [Player Health](https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/PlayerHealth.cs): `Assets/PlayerHealth.cs`
- [Input Actions](https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/Settings/InputSystem_Actions.inputactions): `Assets/Settings/InputSystem_Actions.inputactions`

### Combat

- [Enemy AI](https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/EnemyAI.cs): `Assets/EnemyAI.cs`
- [Bullet Logic](https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/Bullet.cs): `Assets/Bullet.cs`
- [Bullet Prefab](https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/Bullet.prefab): `Assets/Bullet.prefab`

### Presentation

- [Camera Shake](https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/CameraShake.cs): `Assets/CameraShake.cs`
- [Sample Scene](https://github.com/chuan-dev086/unityfirstgame/blob/main/Assets/Scenes/SampleScene.unity): `Assets/Scenes/SampleScene.unity`

### Other components

- **Player**
