34 lines
754 B
C#
34 lines
754 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
namespace BITKit
|
|
{
|
|
public enum SelectionState
|
|
{
|
|
None,
|
|
Hover,
|
|
Active,
|
|
Inactive,
|
|
Focus,
|
|
Selected,
|
|
Enabled,
|
|
Checked,
|
|
Root,
|
|
}
|
|
public interface ISelectable
|
|
{
|
|
#if UNITY_5_3_OR_NEWER
|
|
UnityEngine.Transform Transform { get; }
|
|
#endif
|
|
void SetSelectionState(SelectionState state);
|
|
event Action OnNone;
|
|
event Action OnHover;
|
|
event Action OnActive;
|
|
event Action OnInactive;
|
|
event Action OnFocus;
|
|
event Action OnSelected;
|
|
event Action OnEnabled;
|
|
event Action OnChecked;
|
|
event Action OnRoot;
|
|
}
|
|
} |