I’ve got this script made, but when I try it on my dad’s android tablet, it won’t work. Can you guys help me please? I really need it fixed!
Hope for your help. Thanks.
var PingGood: AudioClip;
function OnTouch(){
audio.PlayOneShot(PingGood);
yield WaitForSeconds(0.6);
Destroy (gameObject);
ScoreBoard.SCORE = ScoreBoard.SCORE + 100;
}
So When I touch the object the script is attached to, it plays the sound, waits till it’s finished, and then destroys the object the script is attached to and adds score to the score system.
Hope for your help!