- Home /
AudioSource playing with delay for 1 step
Hi There. I think the Unity is trolling me:
I have several scenes that goes one after another. To control this I created the simple button for taping:
public void SceneControl()
{
sceneNavigator += 1;
}
I tap the button and go from scene 0 to scene 1. Tap next and go from 1 to 2... The problem is when I want to play sound in scene 1:
if (sceneNavigator == 1)
{
soundToPlay1.Play();
}
It's not playing. It plays only when I tap second time. When the scene 1 is over. Not matter how long I wait to tap second time. It always play on next scene. By the way, it's empty:
if (sceneNavigator == 2)
{
}
I dont know what I doing wrong. Please, Help me people!
Your answer
Follow this Question
Related Questions
Audio playing not in right time when calling from script 1 Answer
AudioClip dont listened in script component 1 Answer
Help with Null Reference Exception please. 1 Answer
PlayClipAtPoint Qualify with Type Name 2 Answers
Why I am getting Negative Decibels (around -70dB) where Normal Speech around 60dB 2 Answers