CompareTo() public method

public CompareTo ( RaycastHit2D other ) : int
other RaycastHit2D
return int
 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);
     }
 }
    static int CompareTo(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.RaycastHit2D obj  = (UnityEngine.RaycastHit2D)ToLua.CheckObject(L, 1, typeof(UnityEngine.RaycastHit2D));
            UnityEngine.RaycastHit2D arg0 = StackTraits <UnityEngine.RaycastHit2D> .Check(L, 2);

            int o = obj.CompareTo(arg0);
            LuaDLL.lua_pushinteger(L, o);
            ToLua.SetBack(L, 1, obj);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
// methods

    static bool RaycastHit2D_CompareTo__RaycastHit2D(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 1)
        {
            UnityEngine.RaycastHit2D arg0    = (UnityEngine.RaycastHit2D)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            UnityEngine.RaycastHit2D argThis = (UnityEngine.RaycastHit2D)vc.csObj;                JSApi.setInt32((int)JSApi.SetType.Rval, (System.Int32)(argThis.CompareTo(arg0)));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }