Skip to main content

MicroTutorialSettings

A class in Root.Township, ATT.MicroTutorial.

One micro tutorial asset: a name, a list of steps and a completion message. It is a PlayerProgressFlag, so completion is stored per player.

Constructors​

MemberWhat it is
MicroTutorialSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private MicroTutorialStep[] stepsBacking field for Steps.
private string tutorialNameBacking field for TutorialName.

Properties​

MemberWhat it is
static IEnumerable<MicroTutorialSettings> All { get; }Every micro tutorial asset loaded.
TutorialCompletedMessage CompletedMessage { get; private set; }Message shown when the tutorial is completed.
MicroTutorialStep[] Steps { get; set; }The tutorial steps in order.
string TutorialName { get; set; }Display name of the tutorial.

Events​

MemberWhat it is
event Action<IPlayer, MicroTutorialSettings> CompletedByPlayerRaised when a player completes the tutorial. Achievements and boards listen to it.

Methods​

MemberWhat it is
void RecordCompletedByPlayer(IPlayer player)Server: raises CompletedByPlayer for the player. Called by the tutorial ServerController.
override string ToString()Short text with the tutorial name and step count.

Used in​

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