Esempio n. 1
0
    //public bool energia2;

    // Use this for initialization
    void Start()
    {
        //AñadirEnergia(sumar);
        BarraEnergia.maxValue = energiaMax;
        BarraEnergia.value    = Energia;
        Habilidades           = GameObject.Find("CTRL_Habilidades").GetComponent <Ctrl_Habilidades>();
    }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        datosGuardados = GameObject.Find("Datosguardados").GetComponent <DatosGuardados>();
        Jugador        = GameObject.FindGameObjectWithTag("Jugador").GetComponent <movimiento_personaje>();
        Habilidades    = GameObject.Find("CTRL_Habilidades").GetComponent <Ctrl_Habilidades>();
        Oleadas        = GameObject.Find("creador_objetos").GetComponent <Ctrl_oleadas>();

        ActualizarPremios();
    }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        Personaje   = GameObject.FindGameObjectWithTag("Jugador").GetComponent <movimiento_personaje>();
        ps          = this.GetComponent <ParticleSystem>();
        Habilidades = GameObject.Find("CTRL_Habilidades").GetComponent <Ctrl_Habilidades>();

        ColliderFuego         = GetComponent <CapsuleCollider>();
        ColliderFuego.enabled = false;
        Invoke("ActivarCollider", 1.5f);
        Invoke("DesactivarCollider", 2.45f);
        Invoke("DestruirFuego", 4.0f);
    }
Esempio n. 4
0
    //public GameObject MenuPremios;

    // Use this for initialization
    void Start()
    {
        if (DestroyTime > 0)
        {
            Invoke("Destruir", DestroyTime);
        }

        Jugador       = GameObject.FindGameObjectWithTag("Jugador").GetComponent <movimiento_personaje>();
        Habilidades   = GameObject.Find("CTRL_Habilidades").GetComponent <Ctrl_Habilidades>();
        Recolectables = GameObject.Find("Recolctables").GetComponent <Ctrl_Recolectables>();
        Premios       = GameObject.Find("Recolctables").GetComponent <Premios>();
    }
Esempio n. 5
0
    //public bool resucitadoAnuncio;
    //public GameObject botonAnuncio;

    void Start()
    {
        //SkinnedMeshRenderer render = GetComponent<SkinnedMeshRenderer>();
        //model.sharedMesh = null;
        //model.SetActive(!model.activeSelf);
        ActualizarVidasInicio();

        rb = GetComponent <Rigidbody>();

        /*if (GameObject.FindGameObjectWithTag("lavadora")) {
         *  Lavadora = GameObject.FindGameObjectWithTag("lavadora").GetComponent<Ctrl_Lavadora>();
         * }*/
        velocidad_fin = velocidad;
        //Col_Personaje = GetComponent<BoxCollider>();
        //var rigidbody = GetComponent<Rigidbody>();
        animatorProta = gameObject.GetComponent <Animator>();

        script_ctl_habilidades = GameObject.Find("CTRL_Habilidades").GetComponent <Ctrl_Habilidades>();
        //  Ctrl_Estropajo = GameObject.Find("Elementos_Escenario").GetComponent<Ctrl_Estropajo1>();

        animatorCamara = GameObject.FindGameObjectWithTag("ShakeCamara").GetComponent <Animator>();
        joystick       = FindObjectOfType <Joystick>();

        if (GameObject.Find("Recolctables"))
        {
            Recolectables = GameObject.Find("Recolctables").GetComponent <Ctrl_Recolectables>();
        }
        tempColortrans   = Irderecha.color;
        tempColoropac    = Irizquierda.color;
        tempColortrans.a = 0.5f;
        tempColoropac.a  = 1f;

        //Variables Sonido
        musicaDeFondo    = GameObject.Find("MusicaFondo").GetComponent <AudioSource>();
        sonidoMuerte     = GameObject.Find("SonidoMuerte").GetComponent <AudioSource>();
        sonidoMuerte_02  = GameObject.Find("SonidoMuerte_02").GetComponent <AudioSource>();
        sonidoQuitarVida = GameObject.Find("SonidoQuitarVida").GetComponent <AudioSource>();
    }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     Habilidades = GameObject.Find("CTRL_Habilidades").GetComponent <Ctrl_Habilidades>();
 }