public override bool Init() { _tutorialPanel = TutorialPanel.current; if (_tutorialPanel == null) { Debug.LogError("TutorialDialogue:Init - Can't get UITutorialPanel instance"); return(false); } _tutorialPanel.Reset(false); _tutorialPanel.Show(); //ShowNextText(); return(true); }
public virtual void SetupTutorialPanel() { tutorialPanel.Show(); tutorialPanel.ToggleHand(showHand); if (showHand) { tutorialPanel.SetHandTransform(handLocalPosition, handLocalRotation, handLocalScale); } if (showText) { tutorialPanel.SetTextTransform(textLocalPosition, textLocalRotation, textSize); } tutorialPanel.SetText(text, textColor, fontSize, alignment); SetupBackgroundMask(); }