How Would We Attach C# Script To When A Scene Is Shown?

Hi,

We have two scenes now.
We want the first scene to either display for 5 seconds or accept mouse click to advance to second scene.
How would we do the above?
We guess it would be a C# script but we are confused how to attach it to the first scene?
Any help would be appreciated, thanks!

Create your script and inherit from MonoBehaviour. This will allow you to attach the script as a component to any GameObject in your scene. I would suggest doing a few tutorials to get familiar with Unity3D…

you don’t attach scripts to the scene, you attach scripts to GameObjects in the scene. If you want the script to do something on Scene start just Give the MonoBehaviour a Start() method.

In unity you don’t have a entry point where you initialize everything, but you create lots of objects for dealing with individual roles, and setup references between them if they have to talk to eachother.