public override void EnableElement() { inputButton.Unlock(); changeVisibility(show: true); isLockedByActionSequence = false; isEnabled = true; }
private void onMemberLockLoaded(string path, GameObject memberLockPrefab) { if (trayInputButton != null) { MemberLock = Object.Instantiate(memberLockPrefab, trayInputButton.transform.parent); MemberLock.SetActive(isLocked); MemberLock.GetComponent <ButtonClickListener>().OnClick.AddListener(onClicked); IconImage = MemberLock.transform.Find("Icon").GetComponent <Image>(); IconImage.sprite = IconSprite; IconImage.enabled = true; if (!isLocked) { trayInputButton.Unlock(); } } }