Bug Fixing and Game Over
Game Over Logic (GameManager.cs): Added a CheckGameOver() method that listens for player-death events and displays the endgame UI when one team is eliminated. Team Assignment Storage (ChooseTeam.cs): Introduced AssignTeamToGameManager(int teamId) to pass the local player’s team selection into GameManager for later game-over evaluation. Gun Pickup Mechanic (GunPickup.cs): Created an OnTriggerEnter(Collider other) handler that detects the player collider, shows a “Press E to Pickup” GUI label, and assigns the weapon prefab to the player. Health Notification (Health.cs): Implemented health tracking with a currentHealth field; when it reaches zero, the script calls GameManager.Instance.PlayerDied(playerId) . Mouse-Look Ownership Fix (MouseLook.cs): Wrapped all Input.GetAxis calls inside if(photonView.IsMine) so only the local player’s camera responds to mouse movement. Spawn Script Separation (SpawnIn.cs): Extracted the waiting-room spawn logic into its own SpawnIn.cs , instan...