コード例 #1
0
 public override void EnableElement()
 {
     inputButton.Unlock();
     changeVisibility(show: true);
     isLockedByActionSequence = false;
     isEnabled = true;
 }
コード例 #2
0
 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();
         }
     }
 }