Author Topic: ActiveAnimation.Play and OnFinished  (Read 2864 times)

omira

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
ActiveAnimation.Play and OnFinished
« on: January 07, 2014, 04:38:55 PM »
If i play an animation with ActiveAnimation.Play, (i use it for menu) OnFinished didn't execute my function in the notify field.

what do i miss?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ActiveAnimation.Play and OnFinished
« Reply #1 on: January 08, 2014, 01:07:36 PM »
ActiveAnimation.Play() clears the OnFinished notifications inside (line 227 of ActiveAnimation.cs). You have to set the OnFinished delegates after calling the Play function.

omira

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: ActiveAnimation.Play and OnFinished
« Reply #2 on: January 08, 2014, 01:39:46 PM »
thanks, (so easy solution :/ ) as usually, awesome support from you :D