Dapatkan semua komponen tipe Unity

 BaseClass[] components = GameObject.FindObjectsOfType<BaseClass>();
Successful Sandpiper