mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
修正资源目录
修正资源目录
This commit is contained in:
Binary file not shown.
@@ -1,33 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2984922c45abd6249bb8ec1aee5f8208
|
|
||||||
PluginImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
iconMap: {}
|
|
||||||
executionOrder: {}
|
|
||||||
defineConstraints: []
|
|
||||||
isPreloaded: 0
|
|
||||||
isOverridable: 0
|
|
||||||
isExplicitlyReferenced: 0
|
|
||||||
validateReferences: 1
|
|
||||||
platformData:
|
|
||||||
- first:
|
|
||||||
Any:
|
|
||||||
second:
|
|
||||||
enabled: 1
|
|
||||||
settings: {}
|
|
||||||
- first:
|
|
||||||
Editor: Editor
|
|
||||||
second:
|
|
||||||
enabled: 0
|
|
||||||
settings:
|
|
||||||
DefaultValueInitialized: true
|
|
||||||
- first:
|
|
||||||
Windows Store Apps: WindowsStoreApps
|
|
||||||
second:
|
|
||||||
enabled: 0
|
|
||||||
settings:
|
|
||||||
CPU: AnyCPU
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,21 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 091015446be02ff4eb886963dbe15d74
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,57 +0,0 @@
|
|||||||
using TEngineCore;
|
|
||||||
using TEngineCore.Net;
|
|
||||||
using TEngineProto;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
|
|
||||||
namespace TEngineCore
|
|
||||||
{
|
|
||||||
public class TEngineLoginUI : UIWindow
|
|
||||||
{
|
|
||||||
#region 脚本工具生成的代码
|
|
||||||
private Image m_imgbg;
|
|
||||||
private Text m_textTittle;
|
|
||||||
private Text m_textVer;
|
|
||||||
private Image m_imgLogo;
|
|
||||||
private GameObject m_goLoading;
|
|
||||||
private GameObject m_goLoginRoot;
|
|
||||||
private InputField m_inputName;
|
|
||||||
private InputField m_inputPassword;
|
|
||||||
private Button m_btnLogin;
|
|
||||||
protected override void ScriptGenerator()
|
|
||||||
{
|
|
||||||
m_imgbg = FindChildComponent<Image>("m_imgbg");
|
|
||||||
m_textTittle = FindChildComponent<Text>("m_textTittle");
|
|
||||||
m_textVer = FindChildComponent<Text>("m_textVer");
|
|
||||||
m_imgLogo = FindChildComponent<Image>("m_imgLogo");
|
|
||||||
m_goLoading = FindChild("m_goLoading").gameObject;
|
|
||||||
m_goLoginRoot = FindChild("m_goLoginRoot").gameObject;
|
|
||||||
m_inputName = FindChildComponent<InputField>("m_goLoginRoot/m_inputName");
|
|
||||||
m_inputPassword = FindChildComponent<InputField>("m_goLoginRoot/m_inputPassword");
|
|
||||||
m_btnLogin = FindChildComponent<Button>("m_goLoginRoot/m_btnLogin");
|
|
||||||
m_btnLogin.onClick.AddListener(OnClickLoginBtn);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件
|
|
||||||
private void OnClickLoginBtn()
|
|
||||||
{
|
|
||||||
var loginPack = new MainPack();
|
|
||||||
loginPack.Requestcode = RequestCode.User;
|
|
||||||
loginPack.Actioncode = ActionCode.Login;
|
|
||||||
loginPack.LoginPack = new LoginPack
|
|
||||||
{
|
|
||||||
Username = m_inputName.text,
|
|
||||||
Password = m_inputName.text,
|
|
||||||
};
|
|
||||||
GameClient.Instance.SendCsMsg(loginPack, CallBack);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CallBack(MainPack pack)
|
|
||||||
{
|
|
||||||
TLogger.LogInfoSuccessd("MainPack" + pack);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: c5415c6c1796e4d46a895770f5ed37cc
|
guid: 66aaf21cc3acb3144b4ca52f3d321949
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
2104
Assets/TEngine/Runtime/Net/Proto/TEngineProto.cs
Normal file
2104
Assets/TEngine/Runtime/Net/Proto/TEngineProto.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 71f5f66a7f8111144af95af151ddf080
|
guid: 594add508af9d364c856aee347ccac38
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
Reference in New Issue
Block a user