Skip to content

Commit 7ee9ca0

Browse files
authored
Update Taggable.cs
1 parent 78482be commit 7ee9ca0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Taggable.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace ToolBox.Tags
88
{
9-
[DisallowMultipleComponent]
9+
[DisallowMultipleComponent, DefaultExecutionOrder(-150)]
1010
public sealed class Taggable : MonoBehaviour
1111
{
1212
[SerializeField, Required, AssetList] private Tag[] _tags = default;
@@ -24,6 +24,9 @@ private void Awake()
2424
#endif
2525

2626
_hash = gameObject.GetHashCode();
27+
28+
for (int i = 0; i < _tags.Length; i++)
29+
_tags[i].Add(_hash);
2730
}
2831

2932
private void OnEnable()

0 commit comments

Comments
 (0)