From 96e7b7c3e1abe5f809d065b21ed9ad5494af6f60 Mon Sep 17 00:00:00 2001 From: Jenny Crowe Date: Sat, 5 Feb 2022 06:47:47 -0700 Subject: [PATCH] Editor: Autoplay button updates at start to reflect autoplay status. --- Assets/Scripts/LevelEditor/Timeline/Timeline.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs index f943747bd..13ab01b33 100644 --- a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs +++ b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs @@ -189,6 +189,14 @@ namespace RhythmHeavenMania.Editor.Track MetronomeBTN.transform.GetChild(0).GetComponent().color = Color.gray; timelineState.SetState(true, false, false); + + AutoBtnUpdate(); + } + + public void AutoBtnUpdate() + { + var animName = GameManager.instance.autoplay ? "Idle" : "Disabled"; + AutoplayBTN.GetComponent().Play(animName, 0, 0); } public static string RandomID()