表格相关逻辑修改和组件定义

This commit is contained in:
2025-08-25 00:10:04 +08:00
parent 5ca8118694
commit e41fd7dd2d
136 changed files with 962 additions and 981 deletions

View File

@@ -2,6 +2,7 @@
using Assets.Scripts.Hotfix;
using NBC;
using NBC.Network;
using NBF.Fishing2;
namespace NBF
{
@@ -13,6 +14,8 @@ namespace NBF
{
_session = Net.CreateSession("127.0.0.1:20001");
_session.Scene.AddComponent<UnitUnityComponent>();
var acc = account;
// 发送登录的请求给服务器

View File

@@ -3,6 +3,8 @@
using FairyGUI;
using UnityEngine;
using NBC;
using NBC.Entitas;
using NBF.Fishing2;
using UIPanel = NBC.UIPanel;
namespace NBF
@@ -18,7 +20,12 @@ namespace NBF
{
if (btn == BtnLogin)
{
LoginHelper.Login(InputAccount.text).Coroutine();
var unitGameObject = new GameObject("Unit");
var unit = Entity.Create<Unit>(App.Main, true, true);
var unitUnity = unit.AddComponent<UnitUnityComponent>();
unitUnity.SetGameObject(unitGameObject);
// App.Main.add
// LoginHelper.Login(InputAccount.text).Coroutine();
}
}
}