https://github.com/khaled71612000/photon-unity
Photon Unity is a project that demonstrates the integration of Photon with Unity for developing multiplayer games
https://github.com/khaled71612000/photon-unity
photon unity
Last synced: about 1 month ago
JSON representation
Photon Unity is a project that demonstrates the integration of Photon with Unity for developing multiplayer games
- Host: GitHub
- URL: https://github.com/khaled71612000/photon-unity
- Owner: khaled71612000
- Created: 2022-06-30T00:15:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T14:17:42.000Z (almost 2 years ago)
- Last Synced: 2025-04-09T06:33:05.075Z (about 1 year ago)
- Topics: photon, unity
- Language: C#
- Homepage:
- Size: 21.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Photon Unity



**Photon Unity** is a project that demonstrates the integration of Photon with Unity for developing multiplayer games. This project showcases how to use Photon to manage networked game sessions and synchronize player data across multiple clients.
## Key Components
### Scripts
- **NetworkManager.cs:** Manages network connections and session handling.
- **PlayerController.cs:** Manages player movements and interactions, synchronizing them across the network.
## Features
- **Multiplayer Integration:** Utilizes Photon for creating multiplayer game sessions.
- **Network Synchronization:** Ensures player data is synchronized across all connected clients.
## Screenshots



## Architecture
Key classes and systems (from source code):
- **`GameplayManager`** (extends `MonoBehaviour`) — Unity component attached to a GameObject — orchestrates game-wide systems
- **`MainMenuUI`** (extends `MonoBehaviour`) — Unity component attached to a GameObject — drives enemy AI behavior and decision-making — user interface and HUD rendering — Key methods: `OnRoomCreated`, `OnConnectedToServer`, `OnNameUpdated`, `CreateRoom`
- **`NetworkManager`** (extends `MonoBehaviourPunCallbacks`) — Unity component attached to a GameObject — orchestrates game-wide systems — neural network layer / training logic — Key methods: `OnConnectedToMaster`, `OnCreatedRoom`, `OnJoinedRoom`, `OnCreateRoomFailed`
- **`NetworkPlayer`** (extends `MonoBehaviourPun`) — Unity component attached to a GameObject — handles player input, movement, and state — neural network layer / training logic
- **`Bullet`** (extends `MonoBehaviour`) — Unity component attached to a GameObject — Key methods: `OnTriggerEnter`
- **`Healer`** (extends `MonoBehaviour`) — Unity component attached to a GameObject — Key methods: `OnTriggerEnter`, `OnTriggerExit`
## Tech Stack
| Technology | Role |
|---|---|
| Unity 3D | Game engine |
| C# | Gameplay scripting |
| Unity Physics | Rigidbody & collision |
| Git | Version control |
## Getting Started
### Prerequisites
- [Unity Hub](https://unity.com/download) + Unity 2019.4 LTS or higher
- Visual Studio 2019+ or VS Code
### Setup
```bash
git clone https://github.com/khaled71612000/Photon-Unity.git
```
1. Open **Unity Hub** → **Add** → select the cloned folder
2. Open **Assets/Scenes/** → double-click the main scene
3. Press ▶ **Play**