/// <inheritdoc /> public void Dispose() { if (Interlocked.CompareExchange(ref _disposed, 1, 0) == 0) { SceneryAPI.DestroyProbe(_ref); _ref = default; } }
public Probe(ProbeType probeType = ProbeType.XplmProbeY) { _ref = SceneryAPI.CreateProbe(probeType); }