Skip to content

Commit 6015dfa

Browse files
authored
Optimized array initialization
1 parent bb981f9 commit 6015dfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime/Poolable.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using UnityEngine;
2+
using System;
23

34
namespace ToolBox.Pools
45
{
56
[DisallowMultipleComponent]
67
internal sealed class Poolable : MonoBehaviour
78
{
8-
private IPoolable[] _poolables = new IPoolable[0];
9+
private IPoolable[] _poolables = Array.Empty<IPoolable>();
910
private bool _isInitialized = false;
1011

1112
private void Awake()

0 commit comments

Comments
 (0)