My codes not working properly

Hi im trying to make a game in which the splashscreen is a set of pics which go on . im trying to to that after 10 seconds (that is the amount of time the pictures will take to get over) i want to load a new scene but the code i wrote it directly goes to the MainMenu scene. This is my code
#pragma strict

function Start () 

function Update () 
WaitForSeconds (10);

wht do i do?? Pls help

WaitForSeconds can only be used with a yield statement in coroutines.

You should take a look at this

Maybe this can help you :wink: