This commit is contained in:
CortexCore
2023-10-20 19:31:12 +08:00
parent 5cd094ed9a
commit a160813262
1878 changed files with 630581 additions and 4485 deletions

View File

@@ -80,8 +80,15 @@ namespace BITKit.Sensors
#if UNITY_EDITOR
private void OnDrawGizmosSelected()
{
if (CurrentTarget is null) return;
Gizmos.DrawLine(sensorTransform.position,CurrentTarget.position);
try
{
if (CurrentTarget is null || sensorTransform is null) return;
Gizmos.DrawLine(sensorTransform.position,CurrentTarget.position);
}
catch (UnassignedReferenceException)
{
}
}
#endif
}