/// <summary> /// Helper function that determines whether the two atlases are related. /// </summary> static public bool CheckIfRelated(UIFont a, UIFont b) { if (a == null || b == null) { return(false); } return(a == b || a.References(b) || b.References(a)); }
private bool References(UIFont font) { if (font == null) { return(false); } return(font == this || mReplacement != null && mReplacement.References(font)); }
/// <summary> /// Helper function that determines whether the font uses the specified one, taking replacements into account. /// </summary> bool References(UIFont font) { if (font == null) { return(false); } if (font == this) { return(true); } return((mReplacement != null) ? mReplacement.References(font) : false); }
public static bool CheckIfRelated(UIFont a, UIFont b) { if (a == null || b == null) { return(false); } if (a.isDynamic && b.isDynamic && a.dynamicFont.get_fontNames()[0] == b.dynamicFont.get_fontNames()[0]) { return(true); } return(a == b || a.References(b) || b.References(a)); }
/// <summary> /// Helper function that determines whether the two atlases are related. /// </summary> static public bool CheckIfRelated(UIFont a, UIFont b) { if (a == null || b == null) { return(false); } if (a.isDynamic && a.dynamicTexture == b.dynamicTexture) { return(true); } return(a == b || a.References(b) || b.References(a)); }
public static bool CheckIfRelated(UIFont a, UIFont b) { if ((a == null) || (b == null)) { return(false); } if (((!a.isDynamic || !b.isDynamic) || (a.dynamicFont.fontNames[0] != b.dynamicFont.fontNames[0])) && ((a != b) && !a.References(b))) { return(b.References(a)); } return(true); }
/// <summary> /// Helper function that determines whether the two atlases are related. /// </summary> static public bool CheckIfRelated(UIFont a, UIFont b) { if (a == null || b == null) { return(false); } #if DYNAMIC_FONT if (a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) { return(true); } #endif return(a == b || a.References(b) || b.References(a)); }
/// <summary> /// Helper function that determines whether the two atlases are related. /// </summary> static public bool CheckIfRelated (UIFont a, UIFont b) { if (a == null || b == null) return false; #if DYNAMIC_FONT && !UNITY_FLASH if (a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) return true; #endif return a == b || a.References(b) || b.References(a); }
public static bool CheckIfRelated(UIFont a, UIFont b) { if ((a == null) || (b == null)) { return(false); } return(((a.isDynamic && b.isDynamic) && (a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0])) || (((a == b) || a.References(b)) || b.References(a))); }
/// <summary> /// Helper function that determines whether the two atlases are related. /// </summary> static public bool CheckIfRelated (UIFont a, UIFont b) { if (a == null || b == null) return false; return a == b || a.References(b) || b.References(a); }
// Token: 0x0600358D RID: 13709 RVA: 0x0010FD68 File Offset: 0x0010E168 public static bool CheckIfRelated(UIFont a, UIFont b) { return(!(a == null) && !(b == null) && ((a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) || a == b || a.References(b) || b.References(a))); }
/// <summary> /// Helper function that determines whether the two atlases are related. /// </summary> public static bool CheckIfRelated(UIFont a, UIFont b) { if (a == null || b == null) return false; if (a.isDynamic && a.dynamicTexture == b.dynamicTexture) return true; return a == b || a.References(b) || b.References(a); }
public static bool CheckIfRelated(UIFont a, UIFont b) { return !(a == null) && !(b == null) && ((a.isDynamic && b.isDynamic && a.dynamicFont.get_fontNames()[a.dynamicFont.get_fontNames().Length - 1] == b.dynamicFont.get_fontNames()[b.dynamicFont.get_fontNames().Length - 1]) || a == b || a.References(b) || b.References(a)); }
public static bool CheckIfRelated(UIFont a, UIFont b) { if ((a == null) || (b == null)) { return false; } return (((a.isDynamic && b.isDynamic) && (a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0])) || (((a == b) || a.References(b)) || b.References(a))); }
public static bool CheckIfRelated(UIFont a, UIFont b) { return !(a == null) && !(b == null) && ((a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) || a == b || a.References(b) || b.References(a)); }
public static Boolean CheckIfRelated(UIFont a, UIFont b) { return(!(a == (UnityEngine.Object)null) && !(b == (UnityEngine.Object)null) && ((a.isDynamic && b.isDynamic && a.dynamicFont.fontNames[0] == b.dynamicFont.fontNames[0]) || a == b || a.References(b) || b.References(a))); }