References() 개인적인 메소드

Helper function that determines whether the atlas uses the specified one, taking replacements into account.
private References ( UIAtlas, atlas ) : bool
atlas UIAtlas,
리턴 bool
예제 #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));
 }
예제 #2
0
    /// <summary>
    /// Helper function that determines whether the two atlases are related.
    /// </summary>

    static public bool CheckIfRelated(UIAtlas a, UIAtlas b)
    {
        if (a == null || b == null)
        {
            return(false);
        }
        return(a == b || a.References(b) || b.References(a));
    }
예제 #3
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));
 }
예제 #4
0
    /// <summary>
    /// Helper function that determines whether the atlas uses the specified one, taking replacements into account.
    /// </summary>

    bool References(UIAtlas atlas)
    {
        if (atlas == null)
        {
            return(false);
        }
        if (atlas == this)
        {
            return(true);
        }
        return((mReplacement != null) ? mReplacement.References(atlas) : false);
    }
예제 #5
0
파일: UIAtlas.cs 프로젝트: Mi-Sad/guardian
 private bool References(UIAtlas atlas)
 {
     if (atlas == null)
     {
         return(false);
     }
     if (atlas == this)
     {
         return(true);
     }
     return(mReplacement != null && mReplacement.References(atlas));
 }
예제 #6
0
 public static Boolean CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     if (a == null || b == null)
     {
         return(false);
     }
     if (!(a == b) && !a.References(b))
     {
         return(b.References(a));
     }
     return(true);
 }
예제 #7
0
 public static bool CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     if ((a == null) || (b == null))
     {
         return(false);
     }
     if ((a != b) && !a.References(b))
     {
         return(b.References(a));
     }
     return(true);
 }
예제 #8
0
 /// <summary>
 /// Helper function that determines whether the two atlases are related.
 /// </summary>
 public static bool CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     if (a == null || b == null) return false;
     return a == b || a.References(b) || b.References(a);
 }
예제 #9
0
 public static bool CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     return(!(a == null) && !(b == null) && (a == b || a.References(b) || b.References(a)));
 }
예제 #10
0
파일: UIAtlas.cs 프로젝트: rnetiks/FoxMod
 public static bool CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     return(((a != null) && (b != null)) && (((a == b) || a.References(b)) || b.References(a)));
 }
예제 #11
0
 public static bool CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     if (a == null || b == null)
     {
         return false;
     }
     return (a == b || a.References(b) ? true : b.References(a));
 }
예제 #12
0
 public static bool CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     return !(a == null) && !(b == null) && (a == b || a.References(b) || b.References(a));
 }
예제 #13
0
 public static Boolean CheckIfRelated(UIAtlas a, UIAtlas b)
 {
     return(!(a == (UnityEngine.Object)null) && !(b == (UnityEngine.Object)null) && (a == b || a.References(b) || b.References(a)));
 }