UIAtlas.References C# (CSharp) Метод

References() приватный Метод

Helper function that determines whether the atlas uses the specified one, taking replacements into account.
private References ( UIAtlas, atlas ) : bool
atlas UIAtlas,
Результат 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