Skip to main content

LoggedInTool

An abstract class in Root.Township, the global namespace.

Base for menu tools that only work while logged in to Alta's account services, such as the shop and cosmetics interfaces. It follows LoginManager's login and logout events.

Constructors​

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

Methods​

MemberWhat it is
protected abstract void LoggedIn()Called on login, and on Start if already logged in.
protected abstract void LoggedOut()Called on logout.
protected virtual void OnDestroy()Unsubscribes from the login events.
protected virtual void Start()Subscribes to the login events.