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
| Member | What it is |
|---|
MicroTutorialSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private MicroTutorialStep[] steps | Backing field for Steps. |
private string tutorialName | Backing field for TutorialName. |
Properties
| Member | What 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
| Member | What it is |
|---|
event Action<IPlayer, MicroTutorialSettings> CompletedByPlayer | Raised when a player completes the tutorial. Achievements and boards listen to it. |
Methods
| Member | What 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: