public void GiveQuestReward(QuestReward _link, bool _hiddenReward) { // Works C# 7 and above. I didn't know this... switch (_link.data) { case GS.RPG.Values.CharacterData c: Debug.Log("Character reward found! " + c.name); // ReputationSystem.AddReputation(c, _link.amount); // BuddySystem.AddBuddy(c, _link.amount); break; default: Debug.Log("Missing reward type from list. " + _link.data.name); break; } // TODO Trigger event for reward popup...? if (!_hiddenReward) { RewardPopUp(_link); } }
private void RewardPopUp(QuestReward _link) { // TODO RewardPopUp method? }