mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update net Demo
Update net Demo
This commit is contained in:
21
Assets/NetDemo/TEngineNetDemo.cs
Normal file
21
Assets/NetDemo/TEngineNetDemo.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using TEngineCore.Net;
|
||||
|
||||
namespace TEngineCore
|
||||
{
|
||||
public class TEngineNetDemo : TEngineCore.TEngine
|
||||
{
|
||||
protected override void RegisterAllSystem()
|
||||
{
|
||||
base.RegisterAllSystem();
|
||||
AddLogicSys(UISys.Instance);
|
||||
AddLogicSys(DataCenterSys.Instance);
|
||||
}
|
||||
|
||||
protected override void StartGame()
|
||||
{
|
||||
UISys.Mgr.ShowWindow<TEngineLoginUI>();
|
||||
|
||||
GameClient.Instance.Connect("127.0.0.1", 54809,true);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user