using Obvious.Soap; using UnityEngine; public class BindGameObjectToScriptableList : MonoBehaviour { public ScriptableListGameObject listGameObject; private void OnEnable() { listGameObject.Add(base.gameObject); } private void OnDisable() { listGameObject.Remove(base.gameObject); } }