modify
This commit is contained in:
parent
ad8b67acb4
commit
9893321815
@ -1,4 +1,4 @@
|
||||
using AlicizaX.Runtime;
|
||||
using AlicizaX;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Fantasy.Network;
|
||||
using Fantasy.Network.Interface;
|
||||
|
@ -1,4 +1,4 @@
|
||||
using AlicizaX.Runtime;
|
||||
using AlicizaX;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Fantasy.Network;
|
||||
using Fantasy.Network.Interface;
|
||||
@ -21,7 +21,7 @@ namespace AlicizaX.Network.Runtime
|
||||
_networkModule = ModuleSystem.RegisterModule<INetworkModule>(typeof(NetworkModule));
|
||||
if (_networkModule == null)
|
||||
{
|
||||
Log.Fatal("Network Manager is invalid.");
|
||||
Log.Error("Network Manager is invalid.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,9 @@
|
||||
using System.Reflection;
|
||||
using AlicizaX.Runtime;
|
||||
using AlicizaX;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Fantasy;
|
||||
using Fantasy.Network;
|
||||
using Fantasy.Network.Interface;
|
||||
using Log = AlicizaX.Runtime.Log;
|
||||
|
||||
namespace AlicizaX.Network.Runtime
|
||||
{
|
||||
@ -69,19 +68,19 @@ namespace AlicizaX.Network.Runtime
|
||||
{
|
||||
_connectState = EConnectState.Connect;
|
||||
_session.AddComponent<SessionHeartbeatComponent>().Start(_heartInterval);
|
||||
Log.Debug("Connect Success");
|
||||
Log.Info("Connect Success");
|
||||
}
|
||||
|
||||
private void OnConnectFail()
|
||||
{
|
||||
_connectState = EConnectState.None;
|
||||
Log.Debug("Connect Fail");
|
||||
Log.Info("Connect Fail");
|
||||
}
|
||||
|
||||
private void OnConnectDisconnect()
|
||||
{
|
||||
_connectState = EConnectState.Disconnect;
|
||||
Log.Debug("Disconnect");
|
||||
Log.Info("Disconnect");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user