引擎简单更新
This commit is contained in:
@@ -11,32 +11,32 @@ namespace AibisDream.Framework
|
||||
|
||||
#region 事件触发中转
|
||||
|
||||
public void OnPointerEnter(GameObject gameObject)
|
||||
public void OnPointerEnter(IInteraction interaction)
|
||||
{
|
||||
pointerOverObj = gameObject;
|
||||
EnumEventSystem.Global.Send(TriggerEnum.PointerEnter, gameObject);
|
||||
pointerOverObj = interaction.GetGameObject();
|
||||
EnumEventSystem.Global.Send(TriggerEnum.PointerEnter, interaction);
|
||||
}
|
||||
|
||||
public void OnPointerExit(GameObject gameObject)
|
||||
public void OnPointerExit(IInteraction interaction)
|
||||
{
|
||||
if (pointerOverObj == gameObject)
|
||||
if (pointerOverObj == interaction.GetGameObject())
|
||||
{
|
||||
EnumEventSystem.Global.Send(TriggerEnum.PointerExit, gameObject);
|
||||
EnumEventSystem.Global.Send(TriggerEnum.PointerExit, interaction);
|
||||
pointerOverObj = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void OnPointerDown(GameObject gameObject)
|
||||
public void OnPointerDown(IInteraction interaction)
|
||||
{
|
||||
EnumEventSystem.Global.Send(TriggerEnum.PointerDown, gameObject);
|
||||
holdingObj = gameObject;
|
||||
EnumEventSystem.Global.Send(TriggerEnum.PointerDown, interaction);
|
||||
holdingObj = interaction.GetGameObject();
|
||||
}
|
||||
|
||||
public void OnPointerUp(GameObject gameObject)
|
||||
public void OnPointerUp(IInteraction interaction)
|
||||
{
|
||||
if (holdingObj == gameObject)
|
||||
if (holdingObj == interaction.GetGameObject())
|
||||
{
|
||||
EnumEventSystem.Global.Send(TriggerEnum.PointerUp, gameObject);
|
||||
EnumEventSystem.Global.Send(TriggerEnum.PointerUp, interaction);
|
||||
holdingObj = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user