Skip to content

Commit

Permalink
fix: Project building.
Browse files Browse the repository at this point in the history
  • Loading branch information
freezy committed Oct 15, 2023
1 parent fae001d commit a60c510
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions VisualPinball.Unity/VisualPinball.Unity/VPT/ColliderComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ protected PhysicsMaterialData GetPhysicsMaterialData(float elasticity = 1f, floa
};
}

#if UNITY_EDITOR
#region Collider Gizmos

#if UNITY_EDITOR

private void OnDrawGizmos()
{
Expand Down Expand Up @@ -196,8 +198,6 @@ private void OnDrawGizmos()
Profiler.EndSample();
}

#region Collider Gizmos

private Mesh GenerateColliderMesh(ref ColliderReference colliders)
{
var color = Color.green;
Expand Down Expand Up @@ -436,6 +436,8 @@ private static void DrawAabb(Aabb aabb, bool isSelected)
Gizmos.DrawWireCube(aabb.Center, aabb.Size);
}

#endif

#endregion

void ICollidableComponent.GetColliders(Player player, ref ColliderReference colliders, float margin)
Expand All @@ -444,7 +446,7 @@ void ICollidableComponent.GetColliders(Player player, ref ColliderReference coll
}
int ICollidableComponent.ItemId => MainComponent.gameObject.GetInstanceID();
bool ICollidableComponent.IsCollidable => isActiveAndEnabled;
#endif

}

internal static class ColliderColor
Expand Down

0 comments on commit a60c510

Please sign in to comment.