备份CatanBuilding瘦身独立工程
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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);//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user