Author Topic: Example 3, OnClick can be triggered more than 1 time.  (Read 6085 times)

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
Example 3, OnClick can be triggered more than 1 time.
« on: May 28, 2012, 12:42:16 AM »
Example 3, OnClick can be triggered more than 1 time during the Panel Transition if the option button is double clicked.

Can it limited to Single Click only ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Example 3, OnClick can be triggered more than 1 time.
« Reply #1 on: May 28, 2012, 01:17:19 AM »
Each click results in the OnClick message. There is also OnDoubleClick. If you only want to react to the first one, there is also OnSelect you can use.

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
Re: Example 3, OnClick can be triggered more than 1 time.
« Reply #2 on: May 28, 2012, 01:48:12 AM »
I cannot find OnSelect or OnDoubleClick in AnimationOrTween.Trigger
« Last Edit: May 28, 2012, 01:53:35 AM by yuewah »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Example 3, OnClick can be triggered more than 1 time.
« Reply #3 on: May 28, 2012, 02:42:06 AM »
Ah, no, it's not in the animationortween. You can always disable the script or the collider once it starts animating though.

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
Re: Example 3, OnClick can be triggered more than 1 time.
« Reply #4 on: May 28, 2012, 04:22:51 AM »
Why UIButtonPlayAnimation.trigger does not contain all the Triggers ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Example 3, OnClick can be triggered more than 1 time.
« Reply #5 on: May 28, 2012, 11:35:02 AM »
Mainly because no one has asked for them. :)

I've added them on my end, and you will see them in the next update.