cara menjalankan kode tanpa persatuan GameObject

[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]

// Make sure you remove the "MonoBehaviour"
Bonus