33 lines
680 B
C#
33 lines
680 B
C#
using Framework.Manager;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ToggleNextGuide : MonoBehaviour
|
|
{
|
|
public string str = "";
|
|
void Start()
|
|
{
|
|
GetComponent<Toggle>().onValueChanged.AddListener((A) =>
|
|
{
|
|
if (A)
|
|
{
|
|
if (str == "")
|
|
{
|
|
TutorialGuideManager.Instance.TriggerNextGuide(transform.name);
|
|
}
|
|
else
|
|
{
|
|
TutorialGuideManager.Instance.TriggerNextGuide(str);
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|