protected override void OnCancelButtonPressed() { base.OnCancelButtonPressed(); ButtonsEventHandler handler = GameObject.FindObjectOfType <ButtonsEventHandler>(); handler.TriggerEvent(UIButton.current.gameObject); }
protected override void OnOtherButtonPressed() { if (Utilities.CheckSupportedFileFormat(window.activeFilePath)) { GameObject modelGo = Utilities.LoadModelFile(window.activeFilePath, null); modelGo.transform.position = modelPosition; ModelImportManager.instance.modelGo = modelGo; ButtonsEventHandler handler = GameObject.FindObjectOfType <ButtonsEventHandler>(); handler.TriggerEvent(UIButton.current.gameObject); } }