Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit bb6b300

Browse files
Added count property
1 parent 23b313b commit bb6b300

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/SO Architecture/Runtime Sets/RuntimeSet.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ public class RuntimeSet<T> : SOArchitectureBaseObject, IEnumerable<T>
77
[SerializeField]
88
protected List<T> _items = new List<T>();
99

10+
public int Count { get { return _items.Count; } }
11+
1012
public void Add(T obj)
1113
{
1214
if (!_items.Contains(obj))

0 commit comments

Comments
 (0)