/// <summary> /// Equality operator /// </summary> /// <param name="other"></param> /// <returns></returns> override public bool Equals(object other) { EventMappingDescriptor desc = (EventMappingDescriptor)other; if (Enabled != desc.Enabled) { return(false); } return(base.Equals(other)); }
public override object Clone() { //Debug.Log("base.Clone(): " + base.Clone()); EventMappingDescriptor desc = new EventMappingDescriptor { ComponentAdapter = ComponentAdapter, Enabled = Enabled }; //base.Clone(); foreach (var mapping in Items) { //Debug.Log("mapping: " + mapping); desc.Add((EventMapping)mapping.Clone()); } return(desc); }