na vissza geci chatgptre mert nem működött... xdd
This commit is contained in:
10
KCClient.cs
10
KCClient.cs
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user