Add FindObjectsOfType method to GameObject class.