How ryan-wong123/sgh works
This repository contains a Photon multiplayer Unity puzzle game and a small ASP.NET endpoint for emailing gameplay CSVs. The documented player workflow runs from room setup and character spawn through world interaction, inventory and clues, and coordinated puzzle progression. The graph preserves the README’s major gameplay capabilities; Unity script details were not sampled, so those nodes use the documented Assets/Scripts directory and documented links. The backend flow is grounded in the sampled source; its connection to gameplay is not shown.
Main entry points: Scripts Puzzle Stage Controller · Program.cs CSV Upload API · CsvEmailSender.cs CSV Email Sender · GmailOptions.cs SMTP Options
Components 22
Multiplayer Setup
- Room Lobby
Assets/Scripts - Character Selection
Assets/Scripts - Player Spawn
Assets/Scripts - Room Chat
Assets/Scripts
Player Interaction
- Player Movement
Assets/Scripts - World Interaction
Assets/Scripts - Waypoint Guidance
Assets/Scripts - Inventory And Clues
Assets/Scripts - Sidebar And Popups
Assets/Scripts - Keypad
Assets/Scripts - Door Interaction
Assets/Scripts
Puzzle Gameplay
- Puzzle Stage Controller
Assets/Scripts - Puzzle Timer
Assets/Scripts - Storyline Events
Assets/Scripts - Drag Card Stack
Assets/Scripts - Puzzle Managers
Assets/Scripts - Networked Feedback
Assets/Scripts
CSV Email Backend
- CSV Upload API
backend/SghCsvEmailApi/Program.cs - SMTP Options
backend/SghCsvEmailApi/Options/GmailOptions.cs - CSV Email Sender
backend/SghCsvEmailApi/Services/CsvEmailSender.cs
Other components
- Player
- Gmail SMTP
Connections 22
- Player → Room Lobby: joins room
- Room Lobby → Character Selection: selects character
- Room Lobby → Player Spawn: spawns player
- Room Lobby → Room Chat: connects chat
- Player → Player Movement: controls
- Player → World Interaction: targets objects
- World Interaction → Inventory And Clues: collects clues
- Player → Waypoint Guidance: follows targets
- Player → Sidebar And Popups: opens panels
- World Interaction → Puzzle Stage Controller: starts puzzle
- Puzzle Stage Controller → Puzzle Managers: checks answers
- Puzzle Stage Controller → Puzzle Timer: starts timer
- Puzzle Timer → Puzzle Stage Controller: reloads puzzle
- Puzzle Stage Controller → Storyline Events: advances stage
- Puzzle Managers → Drag Card Stack: uses card stack
- Puzzle Managers → Networked Feedback: syncs feedback
- Player → Keypad: enters code
- Keypad → Door Interaction: unlocks door
- Player → CSV Upload API: uploads CSV
- CSV Upload API → SMTP Options: binds settings
backend/SghCsvEmailApi/Program.cs - CSV Upload API → CSV Email Sender: sends attachment
backend/SghCsvEmailApi/Program.cs - CSV Email Sender → Gmail SMTP: sends email
backend/SghCsvEmailApi/Services/CsvEmailSender.cs