小改动

This commit is contained in:
2025-02-22 00:30:08 +08:00
parent f3b7befda4
commit 70eddeb881
2 changed files with 18 additions and 26 deletions

View File

@@ -68,7 +68,7 @@ namespace Ichni.Editor
ConsoleUI.SetActive(isHide);
isHide = !isHide;
if (isHide) StartCoroutine(WindowAnim.ShowPanel(InputCommand.gameObject));
if (!isHide) StartCoroutine(WindowAnim.ShowPanel(InputCommand.gameObject));
}
if (Keyboard.current.leftCtrlKey.isPressed && Keyboard.current.upArrowKey.wasPressedThisFrame)
{
@@ -163,7 +163,7 @@ namespace Ichni.Editor
functionInterpreter = new Interpreter();
functionInterpreter.SetFunction("test", (Action)Test);
functionInterpreter.SetFunction("Kill", (Action)Kill);
functionInterpreter.SetFunction("kill", (Action)Kill);
functionInterpreter.SetFunction("lgp", (Action<int, float, float, float, float, float, float>)LGenPathNodes);
functionInterpreter.SetFunction("print", (Action<object>)print);
functionInterpreter.SetFunction("log", (Action<object>)Debug.Log);
@@ -181,7 +181,10 @@ namespace Ichni.Editor
}
for (int i = inspector.connectedGameElement.childElementList.Count - 1; i <= 0; i--)
{
inspector.connectedGameElement.childElementList[i].Delete();
EditorManager.instance.operationManager.CopyPasteDeleteModule.DeleteElement(
inspector.connectedGameElement.childElementList[i]
);
inspector.connectedGameElement.childElementList.RemoveAt(i);
}
}
private void Test()