hi, all.
I used Version 5.3.5f1.
Script :
public AudioSource audio_bgm;
void Awake()
{
Screen.sleepTimeout = SleepTimeout.NeverSleep;
Screen.SetResolution(1280, 800, true);
}
void Start()
{
SET_AUDIO = PlayerPrefs.GetInt (“SET_AUDIO”, 1);
if (SET_AUDIO == 1)
{
audio_bgm.Play ();
}
}
…
The audio operates at startup.
Also audio resume when back into the game after press the home key.
But audio won’t resume after phone call.
Please answer!!