Assert() публичный статический Метод

public static Assert ( bool expr ) : void
expr bool
Результат void
Пример #1
0
    public static UQtLeaf FindLeafRecursively(UQtNode node, Vector2 point)
    {
        if (!node.Bound.Contains(point))
        {
            return(null);
        }

        if (node is UQtLeaf)
        {
            return(node as UQtLeaf);
        }

        foreach (var sub in node.SubNodes)
        {
            UQtLeaf leaf = FindLeafRecursively(sub, point);
            if (leaf != null)
            {
                return(leaf);
            }
        }

        UCore.Assert(false);  // should never reaches here
        return(null);
    }
Пример #2
0
 public override void SetSubNodes(UQtNode[] subNodes)
 {
     UCore.Assert(false);
 }