您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
540 B
27 行
540 B
using NaughtyAttributes;
|
|
using UnityEngine;
|
|
|
|
namespace GameplayIngredients.Events
|
|
{
|
|
[RequireComponent(typeof(Collider))]
|
|
public class OnMouseHoverEvent : EventBase
|
|
{
|
|
[ReorderableList]
|
|
public Callable[] OnHoverIn;
|
|
[ReorderableList]
|
|
public Callable[] OnHoverOut;
|
|
|
|
|
|
private void OnMouseEnter()
|
|
{
|
|
Callable.Call(OnHoverIn, this.gameObject);
|
|
}
|
|
|
|
private void OnMouseExit()
|
|
{
|
|
Callable.Call(OnHoverOut, this.gameObject);
|
|
}
|
|
}
|
|
}
|
|
|
|
|