public override void Inspect() { base.Inspect(); string[] s = new string[] { "Deixe me ver..." }; loadSc.LoadLevel("Desafio 6"); FindObjectOfType <PlayerSpeaker>().PlayerSpeak(s); //Debug.Log(s); }
private void Restart() { GameObject[] objects = FindObjectsOfType <GameObject>(); foreach (GameObject o in objects) { if (o != Camera.main.gameObject) { Destroy(o.gameObject); } } FearController.isPlaying = false; LoadScene.LoadLevel("Main"); }
// Start is called before the first frame update void Start() { scene.LoadLevel(); }