using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using RPGCreationKit; namespace RPGCreationKit { /// /// The Navigation Menu used in the QuestManagerUI, allows us to switch tabs /// public class NavigationMenu : MonoBehaviour { // Index for showing/hiding tabs [SerializeField] private int index = 0; public int Index { get { return index; } set { index = value; } } /// /// Called by the toggles to switch tabs /// public void TriggeredToggle(Toggle t) { if (t.isOn) t.GetComponent().Target.SetActive(true); else t.GetComponent().Target.SetActive(false); } } }