Skip to main content

AchievementItem

A class in Root.Township, the global namespace.

One row on an achievement board that shows a GameAchievement description as text. Filled by AchievementBoard.

Constructors​

MemberWhat it is
AchievementItem()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private GameAchievement achievementThe achievement this row shows.
private TextRenderer textRendererText that shows the description.

Methods​

MemberWhat it is
void SetAchievement(GameAchievement achievement)Sets the achievement and shows its description.
1 private and internal method
MemberWhat it is
private void Start()Shows the assigned achievement's description, except on a headless server.

Used in​

Members of other types that take, return or hold a AchievementItem: