2026-06-02 10:26:44 +08:00
|
|
|
using UnityEngine.EventSystems;
|
|
|
|
|
|
2026-06-02 11:11:47 +08:00
|
|
|
namespace ZooMatch
|
2026-06-02 10:26:44 +08:00
|
|
|
{
|
|
|
|
|
public static class EventKit
|
|
|
|
|
{
|
|
|
|
|
public static void Set2DRaycasterEnabled(Physics2DRaycaster com, bool enabled)
|
|
|
|
|
{
|
|
|
|
|
if (com.enabled != enabled)
|
|
|
|
|
{
|
|
|
|
|
com.enabled = enabled;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Set3DRaycasterEnabled(PhysicsRaycaster com, bool enabled)
|
|
|
|
|
{
|
|
|
|
|
if (com.enabled != enabled)
|
|
|
|
|
{
|
|
|
|
|
com.enabled = enabled;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|