Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Somoraze on August 02, 2013, 10:39:09 AM
Title:
[Solved] How to call callback function when TweenAlpha finishes?
Post by:
Somoraze
on
August 02, 2013, 10:39:09 AM
Hi,
EDIT:
OK I found out how to do it :
public
UITweener
.
OnFinished
onFinished
;
void
Start
(
)
{
onFinished
+=
Test
;
}
void
Test
(
UITweener tween
)
{
Debug
.
Log
(
"test"
)
;
}
void
Update
(
)
{
if
(
Input
.
GetKey
(
"f"
)
)
{
TweenAlpha
.
Begin
(
myButton,
1
,
0
)
.
onFinished
=
onFinished
;
}
}
Hope this helps
Title:
Re: [Solved] How to call callback function when TweenAlpha finishes?
Post by:
andrejvojtas
on
August 29, 2013, 07:53:53 AM
Thank you, this is pure gold!