summaryrefslogtreecommitdiff
path: root/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/ActionTool/Editor/ActionColliderFrameEditor.cs')
-rw-r--r--Assets/ActionTool/Editor/ActionColliderFrameEditor.cs29
1 files changed, 28 insertions, 1 deletions
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"))