예제 #1
0
 /// <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);
         }
     });
 }
예제 #2
0
 /// <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);
 }