Assert() public static method

public static Assert ( bool expr ) : void
expr bool
return void
Ejemplo n.º 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);
    }
Ejemplo n.º 2
0
 public override void SetSubNodes(UQtNode[] subNodes)
 {
     UCore.Assert(false);
 }