public CollectionAchievement findCollectionAchievementById(string id) { CollectionAchievement achi = Array.Find(collectionAchievements, a => a.id == id); if (achi == null) { Debug.Log("Collectable Achievement " + id + " not found!"); } return(achi); }
public void increaseCollectionAchievementById(string id) { CollectionAchievement a = findCollectionAchievementById(id); a.counter += 1; }