private bool CheckForFlags(NavMeshCellFlags flag) { return(flag.HasFlag(NavMeshCellFlags.Walkable) && !flag.HasFlag(NavMeshCellFlags.Tree) && !flag.HasFlag(NavMeshCellFlags.GridFlagObstacle) && !flag.HasFlag(NavMeshCellFlags.MovementBlocker)); }
/// <summary> /// The is walkable cell. /// </summary> /// <param name="flags"> /// The flags. /// </param> /// <returns> /// The <see cref="bool" />. /// </returns> public static bool IsWalkableCell(NavMeshCellFlags flags) { return(!flags.HasFlag(NavMeshCellFlags.GridFlagObstacle) && flags.HasFlag(NavMeshCellFlags.Walkable) && !flags.HasFlag(NavMeshCellFlags.Tree)); }