修复了选曲的问题 优化了ui

This commit is contained in:
2026-01-08 21:04:36 +08:00
parent e7f4ac72d5
commit 2738089af1
414 changed files with 60357 additions and 5279 deletions
+51
View File
@@ -0,0 +1,51 @@
using UnityEngine;
namespace AiryUI
{
[DisallowMultipleComponent]
public abstract class CloseButton : MonoBehaviour
{
public BackButtonAffects backButtonAffects;
public AnimatedElement affectedAnimatedElement;
public AnimatedElementsGroup affectedAnimatedElementsGroup;
public virtual void DoBack ()
{
if ( backButtonAffects == BackButtonAffects.AnimatedElement )
{
if ( affectedAnimatedElementsGroup == null )
{
Debug.LogError ( "<color=orange><b>[Airy UI]</color></b> <color=red><b>X</color></b> Affected Animated Element is null, please set it" , gameObject );
return;
}
affectedAnimatedElement.HideElement ();
}
else if ( backButtonAffects == BackButtonAffects.AnimatedElementsGroup )
{
if ( affectedAnimatedElementsGroup == null )
{
Debug.LogError ( "<color=orange><b>[Airy UI]</color></b> <color=red><b>X</color></b> Affected Animated Elements Group is null, please set it" , gameObject );
return;
}
affectedAnimatedElementsGroup.HideGroup ();
}
}
}
public enum BackButtonAffects { AnimatedElement, AnimatedElementsGroup }
}