I have just published a 2D ball game using Unity 2019.3.9f1 in google play and I downloaded it on my phone. When I played it, the sound of the ball hitting the wall seemed to to be delayed by a half second. But it works completely fine when I tested it on my computer. Is there anything I may be missing or done wrong? How can I fix this problem? Any help is appreciated! Here is script ---
private void OnCollisionEnter2D(Collision2D collision)
{
if (collision.otherCollider.ToString() == "Racket (UnityEngine.BoxCollider2D)")
{
if (Ball.activeSelf)
{
Ball.GetComponent<AudioSource>().Play();
}
}
}