Files
bansonic_beta_main/Assets/scripts/selectYourSongFirst/UI_SelectSong_AutoPlayToggle.cs
T
2026-06-30 21:21:30 +08:00

43 lines
1.0 KiB
C#

using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;
public class UI_SelectSong_AutoPlayToggle : MonoBehaviour
{
[Header("Wiring")]
[SerializeField] private Button button;
[SerializeField] private Toggle toggle;
[SerializeField] private Image buttonImage;
[SerializeField] private Text labelText; // Text (Legacy)
[Header("Tween")]
[SerializeField] private float tweenDuration = 0.25f;
[SerializeField] private Ease tweenEase = Ease.OutCubic;
private Color initialButtonColor = Color.white;
private Color initialTextColor = Color.white;
private bool hasInitialButtonColor;
private bool hasInitialTextColor;
private void Awake()
{
}
private void OnEnable()
{
}
private void OnDisable()
{
}
public void TryAutoWire()
{
// Legacy component retained only for scene compatibility.
// Autoplay UI is now driven exclusively by selected_songInfo.autoplayButton.
}
private void KillTweens()
{
}
}