mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Remove unused
Remove unused
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
|
||||
using System.Collections;
|
||||
using TEngine;
|
||||
using UI;
|
||||
using UnityEngine;
|
||||
|
||||
public class TEngineTest : TEngine.TEngine
|
||||
{
|
||||
/// <summary>
|
||||
/// 注册系统
|
||||
/// </summary>
|
||||
protected override void RegisterAllSystem()
|
||||
{
|
||||
base.RegisterAllSystem();
|
||||
//注册系统,例如UI系统,网络系统,战斗系统等等
|
||||
AddLogicSys(BehaviourSingleSystem.Instance);
|
||||
AddLogicSys(UISys.Instance);
|
||||
}
|
||||
|
||||
protected override void StartGame()
|
||||
{
|
||||
StartCoroutine(Run());
|
||||
}
|
||||
|
||||
IEnumerator Run()
|
||||
{
|
||||
yield return new WaitForSeconds(2.0f);
|
||||
|
||||
ObjMgr.Instance.Active();
|
||||
|
||||
UISys.Mgr.ShowWindow<TEngineUI>(true);
|
||||
|
||||
UISys.Mgr.ShowWindow<MsgUI>(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ObjMgr : TSingleton<ObjMgr>
|
||||
{
|
||||
public override void Active()
|
||||
{
|
||||
//外部注入Update
|
||||
MonoUtility.AddUpdateListener(Update);
|
||||
|
||||
GameEventMgr.Instance.Send<string>(TipsEvent.Log, "WelCome To Use TEngine");
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 869b1b77e2356f14a86cbb2646bc4032
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user