/// <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); }
/// <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); }