BITFALL/Assets/BITKit/Unity/Scripts/Selection/ISelectable.cs

33 lines
715 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit
{
public enum SelectionState
{
None,
Hover,
Active,
Inactive,
Focus,
Selected,
Enabled,
Checked,
Root,
}
public interface ISelectable
{
Transform Transform { get; }
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;
}
}