using DefaultNamespace; using MotionFramework; using System.Collections; using System.Collections.Generic; using UnityEngine; public class SubOpen : MonoBehaviour { public List SUB; private void Awake() { for (int i = 0; i < SUB.Count; i++) { if (MotionEngine.GetModule().ExamName.Contains(SUB[i].name)) { SUB[i].SetActive(true); } } } }