Skip to content

Commit 2e7103e

Browse files
committed
fix: file organization
1 parent 10747e6 commit 2e7103e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

Scripts/Runtime/Core/ScriptableObjectCollection.cs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ public LongGuid GUID
3535
private bool automaticallyLoaded = true;
3636
public bool AutomaticallyLoaded => automaticallyLoaded;
3737

38+
public int Count => items.Count;
39+
40+
public object SyncRoot => throw new NotSupportedException();
41+
public bool IsSynchronized => throw new NotSupportedException();
42+
43+
public bool IsFixedSize => false;
44+
public bool IsReadOnly => false;
45+
46+
public virtual bool ShouldProtectItemOrder => false;
47+
3848
public ScriptableObject this[int index]
3949
{
4050
get => items[index];
@@ -77,17 +87,6 @@ public void CopyTo(List<ScriptableObject> list)
7787
list.Add(e);
7888
}
7989
}
80-
81-
public int Count => items.Count;
82-
83-
public object SyncRoot => throw new NotSupportedException();
84-
public bool IsSynchronized => throw new NotSupportedException();
85-
86-
public bool IsFixedSize => false;
87-
public bool IsReadOnly => false;
88-
89-
public virtual bool ShouldProtectItemOrder => false;
90-
9190

9291
public int Add(object value)
9392
{

0 commit comments

Comments
 (0)