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.
- Listed in Global namespace: E to H
- Inherits or implements
GlobalSettings<GameAchievementSettings> - Derived types
GameAchievementSettings - Attributes
CreateAssetMenu,GlobalSettings
Constructors
| Member | What it is |
|---|---|
GameAchievementSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private PooledObjectDefinition achievementEarnedDefinition | Backing field for AchievementEarnedDefinition. |
private GameActionStat cookFoodStat | Backing field for CookFoodStat. |
private GameActionStat distanceTravelledStat | Backing field for DistanceTravelledStat. |
private GameActionStat lightCampfireStat | Backing field for LightCampfireStat. |
private GameActionStat receivedPostboxStat | Backing field for ReceivedPostboxStat. |
Properties
| Member | What 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. |