na vissza geci chatgptre mert nem működött... xdd

This commit is contained in:
2025-12-13 23:46:32 +01:00
parent d7718c1dff
commit 5abd025860
5 changed files with 99 additions and 50 deletions

View File

@@ -19,7 +19,7 @@ namespace KCM
{
public class KCClient : MonoBehaviour
{
public static Client client = new Client(Main.steamClient);
public static Client client = new Client();
public string Name { get; set; }
@@ -101,7 +101,8 @@ namespace KCM
public static void Connect(string ip)
{
Main.helper.Log("Trying to connect to: " + ip);
Main.EnsureNetworking();
Main.Log("Trying to connect to: " + ip);
client.Connect(ip, useMessageHandlers: false);
}
@@ -112,8 +113,9 @@ namespace KCM
private void Preload(KCModHelper helper)
{
helper.Log("Preload run in client");
Main.helper = helper;
Main.EnsureNetworking();
Main.Log("Preload run in client");
}
private void SceneLoaded(KCModHelper helper)