using System.Collections; using System.Collections.Generic; using UnityEngine; using BITKit; using UnityEngine.Events; namespace BITKit.UX { public class UXNextable : MonoBehaviour, INextble { public MonoBehaviour entry; public UnityEvent onStart; public UnityEvent onEnd; public void EntryNext() { Next(); } public bool Next() { if (entry is INextble x) { return x.Next(); } return false; } public void EntryPrevious() { Previous(); } public bool Previous() { if (entry is INextble x) { return x.Previous(); } return false; } } }