示例#1
0
    /// <summary>
    /// Helper function that determines whether the two atlases are related.
    /// </summary>

    static public bool CheckIfRelated(NGUIAtlas a, NGUIAtlas b)
    {
        if (a == null || b == null)
        {
            return(false);
        }
        return(a == b || a.References(b) || b.References(a));
    }
示例#2
0
    /// <summary>
    /// Helper function that determines whether the atlas uses the specified one, taking replacements into account.
    /// </summary>

    bool References(NGUIAtlas atlas)
    {
        if (atlas == null)
        {
            return(false);
        }
        if (atlas == this)
        {
            return(true);
        }
        return((mReplacement != null) ? mReplacement.References(atlas) : false);
    }
示例#3
0
 /// <summary>
 /// Helper function that determines whether the two atlases are related.
 /// </summary>
 public static bool CheckIfRelated(NGUIAtlas a, NGUIAtlas b)
 {
     if (a == null || b == null) return false;
     return a == b || a.References(b) || b.References(a);
 }