mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-29 20:52:10 +01:00 
			
		
		
		
	fixed github bug
This commit is contained in:
		| @@ -12,20 +12,11 @@ using UnityEngine; | ||||
| public class GameMaster : MonoBehaviour | ||||
| { | ||||
|     [Header("GameMaster")] | ||||
| <<<<<<< Updated upstream | ||||
|     [SerializeField] private List<Player> Players = new List<Player>();  | ||||
|     private void Start() | ||||
|     { | ||||
|  | ||||
|     } | ||||
| ======= | ||||
|     [SerializeField] private List<Player> Players = new List<Player>(); | ||||
|     [SerializeField] private int countOfRounds = 10; | ||||
|  | ||||
|     public GameObject localPlayer; | ||||
|  | ||||
| >>>>>>> Stashed changes | ||||
|  | ||||
|     private void Update() | ||||
|     { | ||||
|         if (Input.GetKeyDown(KeyCode.H)) | ||||
| @@ -41,13 +32,4 @@ public class GameMaster : MonoBehaviour | ||||
|             Cursor.visible = false; | ||||
|         } | ||||
|     } | ||||
| <<<<<<< Updated upstream | ||||
| ======= | ||||
|  | ||||
|      | ||||
|  | ||||
|   | ||||
|  | ||||
|  | ||||
| >>>>>>> Stashed changes | ||||
| } | ||||
|   | ||||
| @@ -5,9 +5,14 @@ public class JoinLeaveManager : MonoBehaviour | ||||
| { | ||||
|     private NetworkManager networkManager; | ||||
|  | ||||
|     public void Join(string ip, string username) | ||||
|     private void Start() | ||||
|     { | ||||
|         networkManager = GetComponent<NetworkManager>(); | ||||
|     } | ||||
|  | ||||
|     public void Join(string ip, string username) | ||||
|     { | ||||
|          | ||||
|  | ||||
|         Debug.Log("[JoinLeaveManager] Trying to join server: " + ip + " as " + username); | ||||
|  | ||||
| @@ -15,4 +20,9 @@ public class JoinLeaveManager : MonoBehaviour | ||||
|         networkManager.networkAddress = ip; | ||||
|         Debug.Log("[JoinLeaveManager] " + username + " joined the server: " + ip); | ||||
|     } | ||||
|  | ||||
|     public void Host() | ||||
|     { | ||||
|         networkManager.StartHost(); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 DerTyp187
					DerTyp187