Starting Tutorial
Once you have created tutorials and frames, it's time to make them run!
- 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)
- Open it, and add using HardCodeLab.TutorialMaster; Now, we’ll be able to access all Tutorial Master functionalities
- Create a new public void StartTutorial()
- Inside of it, call tutorial.Start(0). Because we have only one tutorial, it has an ID of 0.
- Optionally, you may remove Update() and Start() methods.
- 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);
}
}