How furkankirat/shadow-of-roles-universal works
Shadow of Roles is a Unity social-deduction game: players receive hidden roles with unique abilities, then use discussion and deduction through day/night rounds to identify threats and survive. Voting and elimination are documented core mechanics. The tree also shows player setup, role-book, graveyard, messages, game-end, and online-mode subsystems, but their runtime connections are not shown in source excerpts. The workflow edges below reflect README-level gameplay descriptions, not verified implementation calls; online play is shown as an unverified branch.
Main entry points: GameScene Round gameplay · PlayerNames Player setup · Services Hidden roles · OnlineMode Online mode
Components 15
Game flow
- Round gameplay
Assets/Scripts/SceneControllers/GameScene - Role abilities
Assets/Scripts/game/Services/AbilityService.cs - Voting and elimination
Assets/Scripts/game/Services - Game outcome
Assets/Scripts/game/Services/FinishGameService.cs
Roles and setup
- Player setup
Assets/Scripts/SceneControllers/PlayerNames - Hidden roles
Assets/Scripts/game/Services - Role catalog
Assets/Scripts/game/Services/RoleCatalog.cs
Game interface
- Role book
Assets/Scripts/SceneControllers/GameScene/RoleBook - Game messages
Assets/Scripts/SceneControllers/GameScene/Messages - Graveyard
Assets/Scripts/SceneControllers/GameScene/Graveyard - End screen
Assets/Scripts/SceneControllers/GameScene/GameEnd
Runtime services
- Online mode
Assets/Scripts/SceneControllers/OnlineMode - Networking
Assets/Scripts/Networking - Localization
Assets/Scripts/Managers/LanguageManager.cs
Other components
- Players
Connections 9
- Players → Player setup: configure players
- Player setup → Hidden roles: begin role play
- Hidden roles → Role catalog: assign roles
- Players → Round gameplay: discuss and deduce
README.md - Round gameplay → Role abilities: use abilities
README.md - Round gameplay → Voting and elimination: vote and eliminate
README.md - Round gameplay → Game outcome: survive rounds
README.md - Players → Online mode: choose online play
- Online mode → Networking: use networking