public static bool FsmIsNull(FsmPathfindingBase pathfinder) { try { return pathfinder.Value == null; } catch (InvalidCastException e) { return true; } }
public static Type FsmGetTypeOf(FsmPathfindingBase pathfinder) { return pathfinder.Value ? pathfinder.Value.GetType () : null; }