public void UpdateIcon(UnlockableItem display) { displayItem = display.GetComponent<UnlockableItem> (); if (displayItem.unlocked) { windowOpen = true; } }
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; }
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; }
private void UnlockNextItem(int index, UnlockableItem[] itemList) { if (index <= itemList.Length) { itemList[index].UnlockIcon(); } }
void OnItemUnlocked(UnlockableItem item) { _genericPopup.SetupAndShowUI(item.name, item.Description, item.Icon); }
void OnItemUnlocked(UnlockableItem item) { print("item unlocked " + item.name); }