public void AddBadge(RPGBadge badge) { if(profile.AddBadge(badge)) hasProfileChange = true; }
public bool AddBadge(RPGBadge badgeToAdd) { for (int i = 0; i < badges.Count; i++) { if(badges[i].ID == badgeToAdd.ID) { Debug.Log("found duplicate badge"); return false; } } badges.Add(badgeToAdd); return true; }
public bool HasBadge(RPGBadge badge) { for (int i = 0; i < profile.badges.Count; i++) { if(profile.badges[i].ID == badge.ID) return true; } return false; }
protected override void StartNewIItem() { currentItem = new RPGBadge(); }