30 lines
624 B
C#
30 lines
624 B
C#
using System;
|
|
using UnityEngine.UI;
|
|
using static UnityEngine.UI.Button;
|
|
|
|
namespace EnglewoodLAB.UI
|
|
{
|
|
public abstract class PanelBase : UIBase
|
|
{
|
|
|
|
}
|
|
|
|
public static class PanelBaseExtension
|
|
{
|
|
public static void SetActive(this PanelBase[] pbs, bool value)
|
|
{
|
|
foreach(var p in pbs)
|
|
{
|
|
p.SetActive(value);
|
|
}
|
|
}
|
|
public static void SetActive(this PanelBase[] pbs, bool value, int count)
|
|
{
|
|
for (int i = 0; i < count; ++i)
|
|
{
|
|
pbs[i].SetActive(value);
|
|
}
|
|
}
|
|
}
|
|
|
|
} |