// CambioVR cambioVR; // Start is called before the first frame update void Start() { // cambioVR = GameObject.Find("CambioVR").GetComponent(typeof(CambioVR)) as CambioVR; // cambioVR.ToggleVR(); walk = GameObject.Find("Player").GetComponent <Autowalk>(); GlobalVariables.GameIni = true; }
void Awake() { player = GameObject.FindGameObjectWithTag("Player"); playerShootProjectile = player.GetComponentInChildren <PlayerShootProjectile> (); autoWalk = player.GetComponent <Autowalk> (); spawnerManger = GameObject.Find("Spawner"); scoreSlider.value = 0; ScoreUpdate(0); music = GetComponent <AudioSource> (); music.Play(); }
void Start() { goToScene = GameObject.Find("GoToScene").GetComponent(typeof(GoToScene)) as GoToScene; cronometro = GameObject.Find("Cronometro").GetComponent(typeof(Cronometro)) as Cronometro; textLevel.text = "Nivel " + GlobalVariables.nivelActual; walk = GameObject.Find("Player").GetComponent <Autowalk>(); //cuando se ponga en boton borrar GlobalVariables.GameIsPause = true; walk.enabled = false; valoresPanel(); }
// Use this for initialization void Start() { setscr = GetComponent <Autowalk> (); //anim = GetComponent<Animator> (); }