private void Awake() { imgChild = transform.GetChild(0).GetComponent <Image>(); imgChild.gameObject.SetActive(false); GetComponent <Button>().onClick.AddListener(BtnClick); lanternRiddles = Scene2Manager.Instance.GetComponent <LanternRiddles>(); }
protected override void Start() { base.Start(); EventTriggerListener.Get(dengmi).onClick = OnDengClick; PlayerController.isLock = false; lanternRiddles = GetComponent <LanternRiddles>(); lanternRiddles.OnPass.AddListener(OnDengmiPass); }