Hello , Is there any fix to audio.PlayOneShot ?
When the sound play , it play too slow ![]()
Any idea ?
using UnityEngine;
using System.Collections;
public class DestroyByScore : MonoBehaviour {
public Score scoreScript;
public AudioClip AmerFX;
void Start()
{
//Find Scripts GameObject, and get Score Component.
scoreScript = GameObject.Find ("Score").GetComponent<Score>();
}
void Update()
{
if(scoreScript != null && scoreScript.score >= 100)
Destroy (gameObject);
audio.PlayOneShot(AmerFX);
}
}
Thanks in advance!![]()