Hi! I’m new to Unity and need help with the first scene of my game. I have a video which displays a logo and I want it to be played when the first scene starts, just like the unity splash screen. I would like to know the code to do so. I’m using Unity Personal 2.5.2, but I would also like to know the code to do the same in Unity 5.6.6. Basically, I would like to know the code to add in the start and update loops below. Thanks.
`
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class DisplayLogo : MonoBehaviour
{
public string nextScene;
void Start()
{
/* Play the video until it finishes and.
change the scene to ‘nextScene’
after the video completes. */
}
void Update()
{
/* If the mouse button is clicked or any key is
pressed, stop playing the video and skip
directly to the scene ‘nextScene’. */
}