Dapatkan semua komponen tipe Unity
BaseClass[] components = GameObject.FindObjectsOfType<BaseClass>();
Successful Sandpiper
BaseClass[] components = GameObject.FindObjectsOfType<BaseClass>();