From 603c008132a7203506f6a4d37799dfd3b2f62f44 Mon Sep 17 00:00:00 2001 From: bob <605277374@qq.com> Date: Mon, 11 Aug 2025 17:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FantasyNetTest/Form1.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/FantasyNetTest/Form1.cs b/FantasyNetTest/Form1.cs index 65f7e59..b47d723 100644 --- a/FantasyNetTest/Form1.cs +++ b/FantasyNetTest/Form1.cs @@ -49,10 +49,15 @@ public partial class Form1 : Form var time = UnityEngine.Time.time; Log.Init(logTextBox); + InitProtocol(); + } + + private void InitProtocol() + { LoadProtocol(); StartAsync().Coroutine(); } - + private void SwitchLoginButtonState() { if (_session == null) @@ -758,6 +763,7 @@ public partial class Form1 : Form private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Log.Info("重新加载协议"); + InitProtocol(); } #endregion