using Blue; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class HideLevelThree : MonoBehaviour, IController { private IQueueSystem mQueueSystem; public Toggle hideTog; private void Start() { mQueueSystem = this.GetService(); hideTog.onValueChanged.AddListener((state) => { HideL3(state); }); } public void HideL3(bool on) { foreach (var go in mQueueSystem.Level3List) { go.SetActive(!on); } } }