46 lines
1009 B
C#
46 lines
1009 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using WI;
|
|
|
|
public class Panel_Effect : MonoBehaviour, ISingle
|
|
{
|
|
public int activeCount;
|
|
|
|
private List<GameObject> activePanel = new();
|
|
|
|
public void ActivePanel()
|
|
{
|
|
gameObject.SetActive(true);
|
|
gameObject.transform.SetAsLastSibling();
|
|
}
|
|
public void DeactivePanel()
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
//public void ActivePanel(GameObject panelObject)
|
|
//{
|
|
// if (!activePanel.Contains(panelObject))
|
|
// {
|
|
// activePanel.Add(panelObject);
|
|
// activeCount++;
|
|
// }
|
|
|
|
// gameObject.SetActive(true);
|
|
//}
|
|
//public void DeactivePanel(GameObject panelObject)
|
|
//{
|
|
// if (activeCount > 0)
|
|
// {
|
|
// activePanel.Remove(panelObject);
|
|
|
|
// activeCount--;
|
|
|
|
// if (activeCount <= 0)
|
|
// {
|
|
// gameObject.SetActive(false);
|
|
// }
|
|
// }
|
|
//}
|
|
}
|