CameraBox.Start C# (CSharp) Méthode

Start() public méthode

Initiazes all of the variables that need to be initialized and makes sure only one camera is on.
public Start ( ) : void
Résultat void
    void Start ()
    {
	   foreach (Camera c in cams)
       {
            c.enabled = false;
       }
        cams[currentIndex].enabled = true;
	}