I feel my English but not much I would like to create a script in c # on scena or random load a game screen (except for some such as the menu obviously).
Try this:
using UnityEngine;
using System.Collections;
public class LoadRandomScene : MonoBehaviour {
// Place the scenes you don't want to include first (such as your menu)
public int skipScenes = 1;
void LoadScene () {
Application.LoadLevel(Random.Range(skipScenes, Application.levelCount));
}
}
1 Like
Use random to select a number within a range that fits the number of game scenes you have. Have it called from your start screen when the player selects play & the number inserted into the application.load(i) line. E.g.
int scene=Random.Range(1,7);
Application.Load(scene);
(No PC handy, there may be an error above but it may help you)