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

33 lines
715 B
C#
Raw Normal View History

2023-10-20 19:31:12 +08:00
using System;
2023-06-08 14:09:50 +08:00
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
{
2023-10-20 19:31:12 +08:00
Transform Transform { get; }
2023-06-08 14:09:50 +08:00
void SetSelectionState(SelectionState state);
2023-10-20 19:31:12 +08:00
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;
2023-06-08 14:09:50 +08:00
}
}