Skip to content

Commit 8a885c6

Browse files
committed
made RandomizerTag methods protected and virtual
1 parent 2c55f2f commit 8a885c6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

com.unity.perception/Runtime/Randomization/Randomizers/RandomizerTag.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ public abstract class RandomizerTag : MonoBehaviour
1111
{
1212
RandomizerTagManager tagManager => RandomizerTagManager.singleton;
1313

14-
void Awake()
14+
/// <summary>
15+
/// Awake is called when this RandomizerTag is created or instantiated
16+
/// </summary>
17+
protected virtual void Awake()
1518
{
1619
Register();
1720
}
1821

19-
void OnDestroy()
22+
/// <summary>
23+
/// OnDestroy is called when this RandomizerTag is destroyed
24+
/// </summary>
25+
protected virtual void OnDestroy()
2026
{
2127
Unregister();
2228
}

0 commit comments

Comments
 (0)