How morg-and-rew/petproject3 works
This appears to be a Unity game with authentication, ball gameplay, score tracking, and a leaderboard. The tree suggests a user-facing flow from sign-in and starting a game through play and score display, with leaderboard presentation as a separate capability. No README or source excerpts were provided, so connections below are dashed and unverified; component responsibilities are inferred from filenames only.
Main entry points: AuthViewModel.cs Auth view model · BallViewModel.cs Ball view model · ScoreViewModel.cs Score view model · LeaderboardViewModel.cs Leaderboard view model
Components 25
Game Core
- Application startup
Assets/Script/Core/ApplicationStartUp.cs - Game events
Assets/Script/Core/GameEvents.cs - Player data
Assets/Script/Core/PlayerData.cs
Authentication
- Authorization
Assets/Script/Authorization.cs - Registration
Assets/Script/Registration.cs - Auth view
Assets/Script/Views/AuthView.cs - Auth view model
Assets/Script/ViewModels/AuthViewModel.cs - Auth model
Assets/Script/Model/AuthModel.cs
Gameplay and Score
- Game button view
Assets/Script/Views/GameButtonView.cs - Start button
Assets/Script/StartButton.cs - Ball controller
Assets/Script/Ball.cs - Ball view
Assets/Script/Views/BallView.cs - Ball view model
Assets/Script/ViewModels/BallViewModel.cs - Ball model
Assets/Script/Model/BallModel.cs - Score controller
Assets/Script/Score.cs - Score view
Assets/Script/Views/ScoreView.cs - Score view model
Assets/Script/ViewModels/ScoreViewModel.cs - Score model
Assets/Script/Model/ScoreModel.cs
Leaderboard
- Leaderboard controller
Assets/Script/Leaderboard.cs - Leaderboard view
Assets/Script/Views/LeaderboardView.cs - Leaderboard view model
Assets/Script/ViewModels/LeaderboardViewModel.cs - Leaderboard model
Assets/Script/Model/LeaderboardModel.cs - Username display
Assets/Script/UsernameDisplay.cs - Username display view
Assets/Script/Views/UsernameDisplayView.cs
Other components
- Player
Connections 22
- Player → Auth view: uses
- Auth view → Auth view model: delegates
- Auth view model → Authorization: authenticates
- Auth view model → Registration: registers
- Auth view model → Auth model: uses
- Auth view model → Player data: updates
- Application startup → Player data: initializes
- Player → Game button view: uses
- Game button view → Start button: dispatches
- Start button → Game events: signals
- Ball controller → Ball view model: updates
- Ball view model → Ball model: uses
- Ball view → Ball view model: renders
- Score controller → Score view model: updates
- Score view model → Score model: uses
- Score view → Score view model: renders
- Ball controller → Score controller: updates score
- Leaderboard controller → Leaderboard view model: loads
- Leaderboard view model → Leaderboard model: uses
- Leaderboard view → Leaderboard view model: renders
- Leaderboard controller → Score model: reads scores
- Username display → Username display view: updates