コード例 #1
0
        public override bool Equals(object other)
        {
            bool result;

            if (!(other is BoneWeight))
            {
                result = false;
            }
            else
            {
                BoneWeight boneWeight = (BoneWeight)other;
                bool       arg_D9_0;
                if (this.boneIndex0.Equals(boneWeight.boneIndex0) && this.boneIndex1.Equals(boneWeight.boneIndex1) && this.boneIndex2.Equals(boneWeight.boneIndex2) && this.boneIndex3.Equals(boneWeight.boneIndex3))
                {
                    Vector4 vector = new Vector4(this.weight0, this.weight1, this.weight2, this.weight3);
                    arg_D9_0 = vector.Equals(new Vector4(boneWeight.weight0, boneWeight.weight1, boneWeight.weight2, boneWeight.weight3));
                }
                else
                {
                    arg_D9_0 = false;
                }
                result = arg_D9_0;
            }
            return(result);
        }
コード例 #2
0
ファイル: BoneWeight.cs プロジェクト: sgf/Unity5.3Decompiled
 public override bool Equals(object other)
 {
     if (other is BoneWeight)
     {
         BoneWeight weight = (BoneWeight)other;
         if ((this.boneIndex0.Equals(weight.boneIndex0) && this.boneIndex1.Equals(weight.boneIndex1)) && (this.boneIndex2.Equals(weight.boneIndex2) && this.boneIndex3.Equals(weight.boneIndex3)))
         {
             Vector4 vector = new Vector4(this.weight0, this.weight1, this.weight2, this.weight3);
             return(vector.Equals(new Vector4(weight.weight0, weight.weight1, weight.weight2, weight.weight3)));
         }
     }
     return(false);
 }
コード例 #3
0
        public bool Equals(BoneWeight other)
        {
            bool result;

            if (this.boneIndex0.Equals(other.boneIndex0) && this.boneIndex1.Equals(other.boneIndex1) && this.boneIndex2.Equals(other.boneIndex2) && this.boneIndex3.Equals(other.boneIndex3))
            {
                Vector4 vector = new Vector4(this.weight0, this.weight1, this.weight2, this.weight3);
                result = vector.Equals(new Vector4(other.weight0, other.weight1, other.weight2, other.weight3));
            }
            else
            {
                result = false;
            }
            return(result);
        }
コード例 #4
0
 static int Equals(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Vector4 obj = (UnityEngine.Vector4)ToLua.ToObject(L, 1);
         object arg0             = ToLua.ToVarObject(L, 2);
         bool   o = obj.Equals(arg0);
         LuaDLL.lua_pushboolean(L, o);
         ToLua.SetBack(L, 1, obj);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #5
0
// methods

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

        if (len == 1)
        {
            System.Object       arg0    = (System.Object)JSMgr.datax.getWhatever((int)JSApi.GetType.Arg);
            UnityEngine.Vector4 argThis = (UnityEngine.Vector4)vc.csObj;                JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(argThis.Equals(arg0)));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }