// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved. // This code can only be used under the standard Unity Asset Store End User License Agreement // A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms using System; using Doozy.Runtime.Mody; using UnityEngine; namespace Doozy.Runtime.UIManager { /// Event class used by an UISelectable for its selectable states [Serializable] public struct UISelectableState { [SerializeField] private UISelectionState StateType; [SerializeField] private ModyEvent StateEvent; /// State type public UISelectionState stateType => StateType; /// State events public ModyEvent stateEvent => StateEvent; /// Create a UISelectable State /// Type of the state public UISelectableState(UISelectionState type) { StateType = type; StateEvent = new ModyEvent(type.ToString()); } } }