12345678910111213141516171819202122232425262728 |
- 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<IQueueSystem>();
- hideTog.onValueChanged.AddListener((state) =>
- {
- HideL3(state);
- });
- }
- public void HideL3(bool on)
- {
- foreach (var go in mQueueSystem.Level3List)
- {
- go.SetActive(!on);
- }
- }
- }
|