172 lines
4.8 KiB
C#
172 lines
4.8 KiB
C#
using Axibug.Runtime;
|
||
using UnityEngine;
|
||
|
||
namespace Game
|
||
{
|
||
public static class GamePlayEntry
|
||
{
|
||
public static NoMonoComponent NoMono
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
public static ResourcesComponent Resources
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
public static MainPlayerComponent MainPlayer
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
public static MapComponent Map
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
public static RoleMgrNoMono RoleMgr
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
public static LubanNoMono Luban
|
||
{
|
||
get;
|
||
set;
|
||
}
|
||
|
||
//public static RobotMgrComponent RobotMgr
|
||
//{
|
||
// get;
|
||
// set;
|
||
//}
|
||
|
||
public static InputNoMono Input
|
||
{
|
||
get;
|
||
set;
|
||
}
|
||
|
||
//public static NetworkComponent Network
|
||
//{
|
||
// get;
|
||
// set;
|
||
//}
|
||
|
||
//public static DropMgrComponent DropMgr
|
||
//{
|
||
// get;
|
||
// set;
|
||
//}
|
||
|
||
//public static ItemMgrComponent ItemMgr
|
||
//{
|
||
// get;
|
||
// set;
|
||
//}
|
||
|
||
public static EffectNoMono EffectMgr
|
||
{
|
||
get;
|
||
set;
|
||
}
|
||
|
||
public static BattleNoMono Battle
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
public static UIMgr UI
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
public static Tips Tips
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
public static BulletMgrNoMono BulletMgr
|
||
{
|
||
get;
|
||
private set;
|
||
}
|
||
|
||
//public static TaskComponent Task
|
||
//{
|
||
// get;
|
||
// private set;
|
||
//}
|
||
|
||
//public static FindWayComponent FindWay
|
||
//{
|
||
// get;
|
||
// set;
|
||
//}
|
||
|
||
//public static AudioComponent Audio
|
||
//{
|
||
// get;
|
||
// private set;
|
||
//}
|
||
|
||
//public static TimeManager TimeMgr
|
||
//{
|
||
// get { return TimeManager.Instance; }
|
||
//}
|
||
|
||
// Start is called before the first frame update
|
||
public static void Init()
|
||
{
|
||
//<2F><><EFBFBD><EFBFBD>ȡһ<C8A1><D2BB>Axibug/Customs<6D>µĽڵ<C4BD>
|
||
Transform parent = AppEntry.HotUpdate.transform.parent;
|
||
NoMono = parent.Find("NoMono").gameObject.AddComponent<NoMonoComponent>();
|
||
Transform LogicNode = parent.Find("Logic");
|
||
|
||
Resources = parent.Find("Resources").gameObject.AddComponent<ResourcesComponent>();
|
||
Map = parent.Find("Map").gameObject.AddComponent<MapComponent>();
|
||
MainPlayer = parent.Find("MainPlayer").gameObject.AddComponent<MainPlayerComponent>();
|
||
//Luban = parent.Find("Luban").gameObject.AddComponent<LubanNoMono>();
|
||
//Network = parent.Find("Network").gameObject.AddComponent<NetworkComponent>();
|
||
//DropMgr = parent.Find("DropMgr").gameObject.AddComponent<DropMgrComponent>();
|
||
//ItemMgr = parent.Find("ItemMgr").gameObject.AddComponent<ItemMgrComponent>();
|
||
//ItemMgr.Init();
|
||
//EffectMgr = parent.Find("EffectMgr").gameObject.AddComponent<EffectNoMono>();
|
||
Tips = parent.Find("Tips").gameObject.AddComponent<Tips>();
|
||
//Task = parent.Find("Logic").gameObject.AddComponent<TaskComponent>();
|
||
//FindWay = parent.Find("Logic").gameObject.AddComponent<FindWayComponent>();
|
||
//Battle = parent.Find("Logic").gameObject.AddComponent<BattleNoMono>();
|
||
//Audio = parent.Find("Audio").gameObject.AddComponent<AudioComponent>();
|
||
|
||
GameObject go = Resources.CloneBySync("Assets/GameAssets/Prefabs/UI/UIYYControl/UIMgr.prefab", parent);
|
||
if (go != null)
|
||
UI = go.GetComponent<UIMgr>();
|
||
|
||
|
||
#region <EFBFBD><EFBFBD>NoMonoBehaviour
|
||
Luban = new LubanNoMono(typeof(LubanNoMono).Name, LogicNode);
|
||
Input = new InputNoMono(typeof(InputNoMono).Name, LogicNode);
|
||
Battle = new BattleNoMono(typeof(BattleNoMono).Name, LogicNode);
|
||
RoleMgr = new RoleMgrNoMono(typeof(RoleMgrNoMono).Name, parent.Find("RoleMgr"));
|
||
EffectMgr = new EffectNoMono(typeof(EffectNoMono).Name, parent.Find("EffectMgr"));
|
||
BulletMgr = new BulletMgrNoMono(typeof(BulletMgrNoMono).Name, parent.Find("Bullet"));
|
||
//Input = parent.Find("Input").gameObject.AddComponent<InputComponent>();
|
||
//RoleMgr = parent.Find("RoleMgr").gameObject.AddComponent<RoleMgrComponent>();
|
||
//EffectMgr = parent.Find("EffectMgr").gameObject.AddComponent<EffectNoMono>();
|
||
//Battle = parent.Find("Logic").gameObject.AddComponent<BattleNoMono>();
|
||
#endregion
|
||
|
||
}
|
||
}
|
||
|
||
}
|