Welcome,
Guest
. Please
login
or
register
.
December 12, 2024, 06:27:55 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIPlaySound Request for OnDoubleClick
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIPlaySound Request for OnDoubleClick (Read 1971 times)
Yukichu
Full Member
Thank You
-Given: 3
-Receive: 8
Posts: 101
UIPlaySound Request for OnDoubleClick
«
on:
September 26, 2013, 04:38:05 PM »
Could we get UIPlaySound to have OnDoubleClick as part of the default options?
Possibly even all of the default events... never know, might be useful.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIPlaySound Request for OnDoubleClick
«
Reply #1 on:
September 26, 2013, 04:40:36 PM »
using
UnityEngine
;
public
class
DoubleClickSound
:
MonoBehaviour
{
public
AudioClip clip
;
void
OnDoubleClick
(
)
{
NGUITools
.
PlaySound
(
clip, 1f, 1f
)
;
}
}
Logged
Yukichu
Full Member
Thank You
-Given: 3
-Receive: 8
Posts: 101
Re: UIPlaySound Request for OnDoubleClick
«
Reply #2 on:
September 26, 2013, 06:31:07 PM »
I know I can create a script easily enough, but for simplicity sake, having it in the dropdown of the default UIPlaySound script that is added with the Button widgets would be great. That was my request.
Thanks!
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIPlaySound Request for OnDoubleClick