using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /* 勾选框-用户协议和隐私政策 */ public class AgreenmentOption : MonoBehaviour { public static AgreenmentOption ins; Toggle toggle; void Awake() { ins = this; toggle = transform.Find("Toggle").GetComponent(); InitAgreementOnClickListeners(); } void OnDestroy() { if (ins == this) ins = null; } void InitAgreementOnClickListeners() { transform.Find("TextA").GetComponent