From 333c0c86dc0fb2046982a90b25bbe1a0ef76cc7a Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Wed, 2 Mar 2022 23:40:59 -0500 Subject: [PATCH] Added WASD to Editor, Made Autoplay P as a result --- Assets/Scripts/LevelEditor/Timeline/Timeline.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs index 6096d7eb..c29d74e8 100644 --- a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs +++ b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs @@ -173,7 +173,7 @@ namespace RhythmHeavenMania.Editor.Track Tooltip.AddTooltip(StopBTN.gameObject, "Stop [Space]"); Tooltip.AddTooltip(MetronomeBTN.gameObject, "Metronome [M]"); - Tooltip.AddTooltip(AutoplayBTN.gameObject, "Autoplay [A]"); + Tooltip.AddTooltip(AutoplayBTN.gameObject, "Autoplay [P]"); Tooltip.AddTooltip(SelectionsBTN.gameObject, "Tool: Selection [1]"); Tooltip.AddTooltip(TempoChangeBTN.gameObject, "Tool: Tempo Change [2]"); @@ -258,7 +258,7 @@ namespace RhythmHeavenMania.Editor.Track } } - if (Input.GetKeyDown(KeyCode.A)) + if (Input.GetKeyDown(KeyCode.P)) { AutoPlayToggle(); } @@ -292,11 +292,11 @@ namespace RhythmHeavenMania.Editor.Track float moveSpeed = 750; if (Input.GetKey(KeyCode.LeftShift)) moveSpeed *= 2; - if (Input.GetKey(KeyCode.LeftArrow)) + if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.A)) { TimelineContent.transform.localPosition += new Vector3(moveSpeed * Time.deltaTime, 0); } - else if (Input.GetKey(KeyCode.RightArrow)) + else if (Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D)) { TimelineContent.transform.localPosition += new Vector3(-moveSpeed * Time.deltaTime, 0); }