Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
コード例 #1
0
// methods

    static bool Hash128_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.Hash128 argThis = (UnityEngine.Hash128)vc.csObj;                JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(argThis.Equals(arg0)));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }
コード例 #2
0
 public bool Equals(LightMapKey other)
 {
     return(ColorHash.Equals(other.ColorHash) && DirectionHash.Equals(other.DirectionHash) && ShadowMaskHash.Equals(other.ShadowMaskHash));
 }