UnityEngine.RaycastHit2D.CompareTo C# (CSharp) Method

CompareTo() public method

public CompareTo ( RaycastHit2D other ) : int
other RaycastHit2D
return int
        public int CompareTo(RaycastHit2D other)
        {
            if (this.collider == null)
            {
                return 1;
            }
            if (other.collider == null)
            {
                return -1;
            }
            return this.fraction.CompareTo(other.fraction);
        }
    }

Usage Example

コード例 #1
0
 static public int CompareTo(IntPtr l)
 {
     try{
         UnityEngine.RaycastHit2D self = (UnityEngine.RaycastHit2D)checkSelf(l);
         UnityEngine.RaycastHit2D a1;
         checkType(l, 2, out a1);
         System.Int32 ret = self.CompareTo(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.RaycastHit2D::CompareTo
RaycastHit2D