2026-04-22 09:52:55 +08:00
|
|
|
using UnityEngine.EventSystems;
|
|
|
|
|
|
2026-04-27 11:20:13 +08:00
|
|
|
namespace RedHotRoast
|
2026-04-22 09:52:55 +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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|