示例#1
0
        protected override void OnCancelButtonPressed()
        {
            base.OnCancelButtonPressed();

            ButtonsEventHandler handler = GameObject.FindObjectOfType <ButtonsEventHandler>();

            handler.TriggerEvent(UIButton.current.gameObject);
        }
示例#2
0
        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);
            }
        }