filled the credits tab, added lobby picture(when setting up, see background), updated UFO sounds

This commit is contained in:
2025-05-28 19:43:19 +03:00
parent bc7217fce3
commit a3f514b6eb
14 changed files with 3289 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ public class NetworkMenuUI : MonoBehaviour
[Header("Networking")]
public NetworkDiscovery networkDiscovery;
public Camera uiCamera; // Optional, disable if connecting
public Image coverImage;
private readonly List<IPEndPoint> foundServers = new();
@@ -60,6 +61,7 @@ public class NetworkMenuUI : MonoBehaviour
networkDiscovery.StopSearchingForServers();
uiCamera.enabled = false;
coverImage.gameObject.SetActive(false);
InstanceFinder.ClientManager.StartConnection("192.168.42.212");
statusText.text = $"Joined server: {endPoint.Address}";
@@ -76,6 +78,7 @@ public class NetworkMenuUI : MonoBehaviour
{
networkDiscovery.StopSearchingForServers();
if (uiCamera != null) uiCamera.enabled = false;
coverImage.gameObject.SetActive(false);
InstanceFinder.ClientManager.StartConnection(endPoint.Address.ToString());
statusText.text = $"Joined server: {endPoint.Address}";
});
@@ -121,6 +124,7 @@ public class NetworkMenuUI : MonoBehaviour
networkDiscovery.StopSearchingForServers();
InstanceFinder.ClientManager.StartConnection(firstServer.Address.ToString());
statusText.text = $"Joined server: {firstServer.Address}";
coverImage.gameObject.SetActive(false);
yield break;
}