private void QuestCompleted(Quest quest) { quest.QuestCompleted -= QuestCompleted; _instance._activeQuests.Remove(quest); FanfareMessage.ShowWithText(string.Format("Задание завершено:{0}", quest.Description)); AudioSource.PlayClipAtPoint(_instance.QuestAccepted, Vector3.zero, 1f); }
private void QuestCompleted(Quest quest) { quest.QuestCompleted -= QuestCompleted; _instance._activeQuests.Remove(quest); FanfareMessage.ShowWithText(string.Format("Quest completed:{0}", quest.Description)); AudioSource.PlayClipAtPoint(_instance.QuestAccepted, Camera.main.transform.position, 1f); }
private static void ShowUI(string id) { var quest = QuestStorage.GetQuestById(id); _instance._activeQuests.Add(quest); FanfareMessage.ShowWithText(string.Format("Задание принято:{0}", quest.Description)); AudioSource.PlayClipAtPoint(_instance.QuestAccepted, Vector3.zero, 1f); }
private static void ShowUI(string id) { var quest = QuestStorage.GetQuestById(id); if (!_instance._activeQuests.Contains(quest)) { _instance._activeQuests.Add(quest); FanfareMessage.ShowWithText(string.Format("Quest accepted:{0}", quest.Description)); AudioSource.PlayClipAtPoint(_instance.QuestAccepted, Camera.main.transform.position, 1f); } }
public bool TryAddItemToInventory(AItemBase item) { if (_items.Count < kMaxInventoryCapacity) { _items.Add(item); //ShowDialogueForItem(item); FanfareMessage.ShowWithText(string.Format("{0} added to inventory.", item.Name)); Debug.Log(item.ItemID + " was added to inventory."); InventoryChanged(); return(true); } return(false); }
public static void ModifySkill(EPlayerSkills skill, int value) { _skils[skill] = Mathf.Clamp(_skils[skill] + value, 0, 100); FanfareMessage.ShowWithText("You improved in " + skill.ToString()); }