using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnableSync : MonoBehaviour { public List gameObjects; private void OnEnable() { for (int i = 0; i < gameObjects.Count; i++) gameObjects[i].SetActive(true); } }