void Start() { GameObject obj = new GameObject("FileUploader"); FileUploader fileUploader = obj.AddComponent <FileUploader>(); fileUploader.FileUploaded += Handler; fileUploader.SetStart(); }