Jak uruchomić kod bez jedności gameObject

[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]

// Make sure you remove the "MonoBehaviour"
Bonus