/// <summary> /// Copy the contents of the other set into this set. /// </summary> /// <param name="otherSet"></param> public void Copy(UnityRuntimeSet otherSet) { otherSet.UpdateSet(set => { foreach (Object item in set) { Add(item); } }); }
/// <summary> /// Duplicates the contents of the provided set into this set. /// </summary> /// <param name="otherSet"></param> public void Duplicate(UnityRuntimeSet otherSet) { _items.Clear(); Copy(otherSet); }