Advertisement
Nicklaj

Thing.cs

Mar 20th, 2025
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class Thing : MonoBehaviour
  4. {
  5.     public ThingSet RuntimeSet;
  6.  
  7.     private void OnEnable()
  8.     {
  9.         RuntimeSet.Add(this);
  10.     }
  11.  
  12.     private void OnDisable()
  13.     {
  14.         RuntimeSet.Remove(this);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement