예제 #1
0
 public override void Inspect()
 {
     base.Inspect();
     string[] s = new string[] { "Deixe me ver..." };
     loadSc.LoadLevel("Desafio 6");
     FindObjectOfType <PlayerSpeaker>().PlayerSpeak(s);
     //Debug.Log(s);
 }
예제 #2
0
        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");
        }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     scene.LoadLevel();
 }