Assert() public static méthode

public static Assert ( bool expr ) : void
expr bool
Résultat void
    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);
    }
Exemple #2
0
 public override void SetSubNodes(UQtNode[] subNodes)
 {
     UCore.Assert(false);
 }