Skip to main content

SubscriptionManager

A class in Root.Township, the global namespace.

Client tool that, after login, asks the API for supporter subscription rewards and shows a popup with an effect and sound for each Talem reward.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private PooledObjectDefinition effectPooled effect spawned at the popup.
private static Logger loggerNLog logger for API errors.
private SoundEffectSet soundEffectSetSound played at the popup.

Methods​

MemberWhat it is
protected override async void LoggedIn()Checks for subscription rewards and shows a popup for each Talem reward.
protected override void LoggedOut()Does nothing.