Files
back_cantanBuilding/Assets/Scripts/EventStrikeLucky/EventLuckMagicSelectionView.cs
2026-05-26 16:15:54 +08:00

34 lines
844 B
C#

using UnityEngine;
public class EventLuckMagicSelectionView : MonoBehaviour
{
[SerializeField] private GameObject fxLoop, fxNormal;
public void ShowStandByOrHide(Vector2? position = null)
{
if (!position.HasValue)
{
gameObject.SetActive(false);
return;
}
transform.position = position.Value;
gameObject.SetActive(true);
fxLoop.SetActive(true);
fxNormal.SetActive(false);
}
public void ShowBlinkOrStandBy(Vector2? position = null)
{
gameObject.SetActive(true);
if (!position.HasValue)
{
fxLoop.SetActive(true);
fxNormal.SetActive(false);
return;
}
transform.position = position.Value;
fxLoop.SetActive(false);
fxNormal.SetActive(true);//
}
}