using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /******************************************************************************* *Create By CG *Function *******************************************************************************/ namespace ZXK.LouDiXvMuNiu { public class ColCtrl : MonoBehaviour { private void OnEnable() { if (GameManager.Instance._StateContext.GetState().Name.Equals("ExamState")) { transform.GetComponent().enabled = false; } else { transform.GetComponent().enabled = true; } } } }