mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 05:50:09 +00:00
24 lines
614 B
C#
24 lines
614 B
C#
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace XCharts
|
|
{
|
|
[UnityEngine.Scripting.Preserve]
|
|
internal sealed class VesselHandler : MainComponentHandler<Vessel>
|
|
{
|
|
public override void Update()
|
|
{
|
|
if (chart.isPointerInChart)
|
|
{
|
|
component.context.isPointerEnter = false;
|
|
return;
|
|
}
|
|
var vessel = component;
|
|
vessel.context.isPointerEnter = vessel.show
|
|
&& Vector3.Distance(vessel.context.center, chart.pointerPos) <= vessel.context.radius;
|
|
}
|
|
}
|
|
} |