Пример #1
0
        /// <summary>
        /// Propagating input event handler. Called on a view to trigger the action.
        /// </summary>
        public override bool HandleAction()
        {
            base.HandleAction();

            // Trigger the click
            Click.Trigger();

            return(false);
        }
Пример #2
0
        /// <summary>
        /// Propagating input event handler. Called on a view to trigger the action.
        /// </summary>
        public override bool HandleAction()
        {
            base.HandleAction();

            // Trigger the click
            Click.Trigger();

            // Visibly show as presed for a moment
            IsPressed = true;
            UpdateState();
            StartCoroutine(ReleaseButtonShortly());

            return(false);
        }