Skip to main content

DestroyStepContentStep

A class in Root.Township, ATT.MicroTutorial.Steps.

Micro tutorial step that despawns the content of chosen earlier steps, then completes after two seconds.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private int[] stepsToDestroyIndexes (from 0) of the steps whose content is removed.

Methods​

MemberWhat it is
override IResult IsConfigurationValid()Errors if no step indexes are set.
override async Task RunForInstance(IServerStepInstance stepInstance)Despawns the content of each listed step, waits two seconds and completes. The range check misses an index equal to the step count.