using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class IntroduceToggleChange : MonoBehaviour { // Use this for initialization void Start () { GetComponent().onValueChanged.AddListener(Change); } private void Change(bool arg0) { gameObject.SetActive(arg0); } // Update is called once per frame void Update () { } }