online game working

This commit is contained in:
2025-10-05 19:54:30 +02:00
parent 73595994d1
commit 807e8fc5f3
4 changed files with 89 additions and 6 deletions

View File

@@ -93,6 +93,15 @@ namespace MegaKoop.Game.Networking
private void Update()
{
if (networkManager == null)
{
networkManager = SteamCoopNetworkManager.Instance;
if (networkManager != null)
{
RegisterHandlers();
}
}
if (networkManager == null)
{
return;
@@ -178,7 +187,8 @@ namespace MegaKoop.Game.Networking
}
else
{
characterController.enabled = false;
characterController.enabled = isLocalPlayer;
characterController.SetInputSource(null);
}
}