screen
This commit is contained in:
@@ -5,6 +5,12 @@ namespace AibisDream.Framework
|
||||
{
|
||||
public class EventSystemEx : SingletonBase<EventSystemEx>
|
||||
{
|
||||
#region 状态
|
||||
|
||||
public bool isLocked;
|
||||
|
||||
#endregion
|
||||
|
||||
public GameObject pointerOverObj;
|
||||
public GameObject draggingObj;
|
||||
public GameObject holdingObj;
|
||||
@@ -41,6 +47,16 @@ namespace AibisDream.Framework
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 事件注册
|
||||
|
||||
public override void OnSingletonInit()
|
||||
{
|
||||
EnumEventSystem.Global.Register(EventEnum.OpenScreen, () => isLocked = true);
|
||||
EnumEventSystem.Global.Register(EventEnum.CloseScreen, () => isLocked = false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 单例必须的代码
|
||||
@@ -48,10 +64,6 @@ namespace AibisDream.Framework
|
||||
private EventSystemEx()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnSingletonInit()
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user