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