void Init() { _owner.MarkGameObject(_singletonId, _monoBehaviourId.GameObject); _singletonRegistry.MarkSingleton(_singletonId, SingletonTypes.ToSingleMonoBehaviour); _lazyCreator.IncRefCount(); }
void Init() { _singletonRegistry.MarkSingleton(_id, SingletonTypes.ToSingleFactory); _lazyCreator.IncRefCount(); }
void Init() { _singletonRegistry.MarkSingleton(_id, SingletonTypes.ToSingleGameObject); _creator.IncRefCount(); }
void Init() { _owner.MarkResource(_singletonId, _resourceId.ResourcePath); _singletonRegistry.MarkSingleton(_singletonId, SingletonTypes.ToSinglePrefabResource); _lazyCreator.IncRefCount(); }
void Init() { _owner.MarkPrefab(_singletonId, _prefabId.Prefab); _singletonRegistry.MarkSingleton(_singletonId, SingletonTypes.ToSinglePrefab); _lazyCreator.IncRefCount(); }