mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
16 lines
402 B
C#
16 lines
402 B
C#
using AssetRipper.SourceGenerated.Classes.ClassID_208;
|
|
using AssetRipper.SourceGenerated.Enums;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class NavMeshObstacleExtensions
|
|
{
|
|
public static NavMeshObstacleShape GetShape(this INavMeshObstacle obstacle)
|
|
{
|
|
return obstacle.Has_Shape()
|
|
? (NavMeshObstacleShape)obstacle.Shape
|
|
: NavMeshObstacleShape.Capsule;
|
|
}
|
|
}
|
|
}
|