Skip to main content

GameAchievementSettings

A class in Root.Township, the global namespace.

Global settings for achievements: the earned popup and the stats used for built-in achievements. Get it with GlobalSettings<GameAchievementSettings>.Instance.

Constructors​

MemberWhat it is
GameAchievementSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

5 private and internal fields
MemberWhat it is
private PooledObjectDefinition achievementEarnedDefinitionBacking field for AchievementEarnedDefinition.
private GameActionStat cookFoodStatBacking field for CookFoodStat.
private GameActionStat distanceTravelledStatBacking field for DistanceTravelledStat.
private GameActionStat lightCampfireStatBacking field for LightCampfireStat.
private GameActionStat receivedPostboxStatBacking field for ReceivedPostboxStat.

Properties​

MemberWhat it is
PooledObjectDefinition AchievementEarnedDefinition { get; }Pooled object shown when an achievement is earned.
GameActionStat CookFoodStat { get; }Stat counted when food is cooked.
GameActionStat DistanceTravelledStat { get; }Stat for distance travelled.
GameActionStat LightCampfireStat { get; }Stat counted when a campfire is lit.
GameActionStat ReceivedPostboxStat { get; }Stat counted when a postbox delivery is received.