Пример #1
0
 public void UpdateIcon(UnlockableItem display)
 {
     displayItem = display.GetComponent<UnlockableItem> ();
     if (displayItem.unlocked) {
         windowOpen = true;
     }
 }
Пример #2
0
        public void UpdateUnlockableInfo()
        {
            Challenge challenge = campaign.challenges[currentChallenge];

            if (challenge.unlockableItems.Count() == 0 || curUnlockableIndex >= challenge.unlockableItems.Count())
            {
                return;
            }
            UnlockableItem unlockable = challenge.unlockableItems[curUnlockableIndex];

            unlockable.fileName = unlockableFile.Text;
            unlockable.name     = unlockableName.Text;
            unlockable.type     = (UnlockableType)unlockableType.SelectedIndex;
        }
Пример #3
0
        public void SetUnlockableToSelected()
        {
            if (campaign == null)
            {
                return;
            }
            Challenge challenge = campaign.challenges[currentChallenge];

            if (challenge.unlockableItems.Count() == 0 || curUnlockableIndex >= challenge.unlockableItems.Count())
            {
                return;
            }
            unlockableUpdating = true;
            UnlockableItem unlockable = challenge.unlockableItems[curUnlockableIndex];

            unlockableFile.Text          = unlockable.fileName;
            unlockableName.Text          = unlockable.name;
            unlockableType.SelectedIndex = (int)unlockable.type;
            unlockableUpdating           = false;
        }
Пример #4
0
 private void UnlockNextItem(int index, UnlockableItem[] itemList)
 {
     if (index <= itemList.Length) {
         itemList[index].UnlockIcon();
     }
 }
Пример #5
0
 void OnItemUnlocked(UnlockableItem item)
 {
     _genericPopup.SetupAndShowUI(item.name, item.Description, item.Icon);
 }
Пример #6
0
 void OnItemUnlocked(UnlockableItem item)
 {
     print("item unlocked " + item.name);
 }