Unity UI Button Activating before scene shows

So i used a simple first scene with 2 scripts,

  • one sending me to the MENU scene instantly or after 5 seconds(tried both)
  • and other just having functions of admob

note1 - Important to say i tested this only with the first script and the bug was still there.

note2 - MENU scene has 4 buttons , start game, exit and 2 others

When I start the game , it shows at first the unity symbol, then my first scene for something like 5 seconds and then the MENU,
The problem is: if i press the screen during the first scene ( before the menu shows) then when the menu comes up it instantly pressed the key where i pressed before causing the game to instantly exit or start depending where I pressed

note3: i’m using the UI buttons, the only script associated is to say what should they do when pressed
note4: when going from game mode back to menu this doesn’t happen ( probably because it loads instantly)

So to resume: My buttons are being pressed before the scene shows up, and when it comes up the buttons automatically do their action

For anyone finding this, I solved it by using a small delay until activating the buttons after the scene start with an if(scene == the one i want && timeCounter over 0.5sec )