Commit 959ac6b9 authored by SherryChaos's avatar SherryChaos

fix hot key bug

parent 6b484926
This diff is collapsed.
fileFormatVersion: 2
guid: b10cc5464e906614ba465559d4c007de
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
MDPro3 v1.1.2更新:
1.修复了在决斗中需要输入文字时(如抹杀之指名者),会响应快捷键功能的错误。
MDPro3 v1.1.1更新:
1.新投稿动画:琰魔龙 红莲魔·渊、龙骑士 D-终。
2.现在在决斗中也能开启加速了,回放模式下为2倍速,其他模式下为1.5倍速。
......
......@@ -424,6 +424,8 @@ namespace MDPro3
bool mate0Random;
bool mate1Random;
public static bool inputMode;
public override void PerFrameFunction()
{
if (isShowed)
......@@ -571,7 +573,7 @@ namespace MDPro3
ToChat();
}
if (Program.I().room.chatOn)
if (Program.I().room.chatOn || inputMode)
return;
if (Input.GetKeyDown(KeyCode.Q))
......
......@@ -26,6 +26,8 @@ namespace MDPro3.UI
float height = btnConfirm.GetComponent<RectTransform>().anchoredPosition.y;
btnConfirm.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, height);
}
OcgCore.inputMode = true;
}
public override void OnConfirm()
......@@ -41,5 +43,9 @@ namespace MDPro3.UI
Hide();
}
private void OnDestroy()
{
OcgCore.inputMode = false;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment