using UnityEngine.UIElements; namespace Unity.Cloud.Collaborate.Components { internal abstract class PageComponent : VisualElement { /// /// Current active status for this page. /// protected bool Active { get; private set; } /// /// Set active status of this page. /// /// True if the page is to be active. public void SetActive(bool active) { Active = active; if (Active) { SetActive(); } else { SetInactive(); } } /// /// Set this page active. /// protected abstract void SetActive(); /// /// Set this page inactive. /// protected abstract void SetInactive(); } }