Skip to main content
Version: 1.0

Starting Tutorial

Once you have created tutorials and frames, it's time to make them run!

  1. Create a new script and call it whatever you want it to be (e.g. TutorialCaller). And attach it to a GameObject (e.g. Main Camera)
  2. Open it, and add using HardCodeLab.TutorialMaster; Now, we’ll be able to access all Tutorial Master functionalities
  3. Create a new public void StartTutorial()
  4. Inside of it, call tutorial.Start(0). Because we have only one tutorial, it has an ID of 0.
  5. Optionally, you may remove Update() and Start() methods.
  6. Save it and let it compile.

Here's code for reference:

using UnityEngine;
using HardCodeLab.TutorialMaster;

public class TutorialCaller : MonoBehaviour
{
public void StartTutorial()
{
tutorial.Start(0);
}
}