UIAtlas.References C# (CSharp) Method

References() private method

Helper function that determines whether the atlas uses the specified one, taking replacements into account.
private References ( UIAtlas, atlas ) : bool
atlas UIAtlas,
return bool
	bool References (UIAtlas atlas)
	{
		if (atlas == null) return false;
		if (atlas == this) return true;
		return (mReplacement != null) ? mReplacement.References(atlas) : false;
	}

Usage Example

示例#1
0
 public static bool CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     if ((a == null) || (b == null))
     {
         return(false);
     }
     return(((a == b) || a.References(b)) || b.References(a));
 }
All Usage Examples Of UIAtlas::References