Skip to main content

PlayerDebugMessager

A class in Root.Township, the global namespace.

Component with a method that shows a message on the local player's screen, for wiring up from inspector events.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private DisplayMessageType displayTypeHow the message replaces any current one.
private float messageDurationSeconds the message is shown (2 by default).

Methods​

MemberWhat it is
void DisplayMessage(string message)Client: shows the message on the local player's message display.