void Start()
 {
     myPlayer     = GetComponent <Transform>();
     activarPanel = FindObjectOfType <CambiarPanelGame>();
     enableMover  = FindObjectOfType <NivelesMapa>();
     acercamiento = 9;
     action       = false;
 }
Example #2
0
    void Start()
    {
        //Cuando cargue el mapa de nuevo, el Player aparecera en el nivel donde él ha decidido salir.
        playerTrans.position = posicionesNiveles[IDBotones.ubicacionNivel].position;

        Debug.Log(i);
        //Esta distancia se calcula para saber cuando el Player va a tener que usar los
        distanciaEntrePuntos = posicionesNiveles[0].position.x - posicionesNiveles[1].position.x;
        cambiarNivel         = FindObjectOfType <CambiarPanelGame>();
    }