Tz2/Assets/Zion/Scripts/TutorialGuideComponent.cs

42 lines
949 B
C#

using System.Collections;
using System.Collections.Generic;
using Framework.Manager;
using UnityEngine;
using UnityEngine.SceneManagement;
public class TutorialGuideComponent : MonoBehaviour
{
public static TutorialGuideComponent Instance;
public void Awake()
{
Instance = this;
}
public void NextGuide()
{
TutorialGuideManager.Instance.TriggerNextGuide();
}
public void NextGuide(string targetObjectName)
{
TutorialGuideManager.Instance.TriggerNextGuide(targetObjectName);
}
public void Quit()
{
Application.Quit();
//SceneManager.LoadScene("GameMain");
}
public void ShowGUIde()
{
TutorialGuideManager.Instance.ShowMaskdon_tNext();
}
public void HideGuide()
{
TutorialGuideManager.Instance.HideGuide();
}
public void TriggerPrevGuide()
{
TutorialGuideManager.Instance.TriggerPrevGuide();
}
}