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);
    }
}

  • tutorial-master/1.0/starting-a-tutorial.txt
  • Last modified: 2018/06/22 05:46
  • by admin