From ce73a13f28e5a947df8f1f87f1f1be20010952ec Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 2 Aug 2021 08:35:26 +0800 Subject: =?UTF-8?q?*=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActionTool/Editor/ActionColliderFrameEditor.cs | 29 +++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'Assets/ActionTool/Editor/ActionColliderFrameEditor.cs') diff --git a/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs b/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs index 4f716be3..91b6d0c3 100644 --- a/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs +++ b/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs @@ -14,7 +14,7 @@ namespace ActionTool private void OnEnable() { titleContent = new GUIContent("Collider Frame Editor"); - maxSize = new Vector2(300, 150); + maxSize = new Vector2(300, 180); minSize = maxSize; if(!sceneView) @@ -62,6 +62,33 @@ namespace ActionTool GUILayout.Space(10); + GUILayout.BeginHorizontal(); + + if(GUILayout.Button("Left abit")) + { + ActionData action = ActionManager.actionData; + float normaltime = frame.frame / action.totalFrame; + action.curAnimTimeNormal = normaltime - 0.01f; + } + + if (GUILayout.Button("Right abit")) + { + ActionData action = ActionManager.actionData; + float normaltime = frame.frame / action.totalFrame; + action.curAnimTimeNormal = normaltime + 0.01f; + } + + if (GUILayout.Button("Current")) + { + ActionData action = ActionManager.actionData; + float normaltime = frame.frame / action.totalFrame; + action.curAnimTimeNormal = normaltime; + } + + GUILayout.EndHorizontal(); + + GUILayout.Space(10); + Color prevColor = GUI.backgroundColor; GUI.backgroundColor = Color.red; if (GUILayout.Button("Delete")) -- cgit v1.1-26-g67d0