表格相关逻辑修改和组件定义
This commit is contained in:
@@ -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;
|
||||
|
||||
// 发送登录的请求给服务器
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user