I am new to programming, trying to do an intro (video) in the game and after the end of this video a certain action should take place (namely, a transition to another scene). I tried to do it using the number of frames in the video, but it didn't work out. Used VideoPlayer. In the official documentation I did not find similar functionality. Help me please(
failed attempt code
public void AutoLoadOurMenu() { ulong numberFramesInVideo; //количество кадров в видео numberFramesInVideo = videoPlayer.frameCount; ulong numberOfCurrentFrame; //номер текущего кадра numberOfCurrentFrame = (ulong) videoPlayer.frame; if (numberOfCurrentFrame== numberFramesInVideo) //ещё не совсем поняла, с 0 //или 1 идет отсчет кадров, но так: if (numberOfCurrentFrame== // numberFramesInVideo-1) тоже пробовала, тоже неудачно { Application.LoadLevel(1); } }