|
@@ -51,13 +51,15 @@ namespace GFGGame
|
|
|
private static int index = 0;
|
|
|
public static void AddShowGMViewEventListener()
|
|
|
{
|
|
|
- GRoot.inst.onTouchBegin.Add(OnTouchBegin);
|
|
|
+ if (GameConfig.showGM >= 1)
|
|
|
+ GRoot.inst.onTouchBegin.Add(OnTouchBegin);
|
|
|
}
|
|
|
private static void OnTouchBegin(EventContext context)
|
|
|
{
|
|
|
+ //LogUtil.LogDev($"OnTouchBegin 1 {context.inputEvent.button} {Stage.inst.touchCount}");
|
|
|
if (context.inputEvent.button == 1 || Stage.inst.touchCount == 2)
|
|
|
{
|
|
|
-
|
|
|
+ //LogUtil.LogDev("OnTouchBegin 2");
|
|
|
if (index == 0)
|
|
|
{
|
|
|
Timers.inst.Add(1, 1, OnTimeComplete);
|
|
@@ -73,11 +75,14 @@ namespace GFGGame
|
|
|
private static void OnTimeComplete(object param)
|
|
|
{
|
|
|
index = 0;
|
|
|
+ //LogUtil.LogDev("OnTimeComplete");
|
|
|
}
|
|
|
|
|
|
public static void ShowGmView()
|
|
|
{
|
|
|
+ //LogUtil.LogDev("ShowGmView");
|
|
|
if (ViewManager.isViewOpen(typeof(PhotographView).FullName)) return;
|
|
|
+ if (ViewManager.isViewOpen(typeof(StoryDialogView).FullName)) return;
|
|
|
if (GameConfig.showGM >= 1)
|
|
|
{
|
|
|
ViewManager.Show<GMPanelView>();
|