You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
428 B

using System;
using UnityEngine;
[Serializable]
public struct ViewGroup
{
[SerializeField] GameObject[] viewGroup;
public void Active()
{
for (int i = 0; i < viewGroup.Length; ++i)
{
viewGroup[i]?.SetActive(true);
}
}
public void Deactive()
{
for (int i = 0; i < viewGroup.Length; ++i)
{
viewGroup[i]?.SetActive(false);
}
}
}