Esempio n. 1
0
    public GameObject botonDeMision;// misioncompleta

    // Start is called before the first frame update
    void Start()
    {
        numDeObjetivos   = objetivos.Length;
        textoMision.text = "Obtén las gemas rojas" + "\n Restantes: " + numDeObjetivos;


        jugador = GameObject.FindGameObjectWithTag("Player").GetComponent <LogicaPersonaje1>();
        //target = GameObject.FindGameObjectWithTag("Player").GetComponent<Transform>();

        //jugador = GameObject.FindGameObjectsWithTag("Player").GetComponent<LogicaPersonaje1>();
        simboloMision.SetActive(true);//activate simbolo sobre el npc

        panelNPC.SetActive(false);
    }
Esempio n. 2
0
 //1 = crece
 //2 = aumenta velocidad
 //3 = aumenta salto
 // Start is called before the first frame update
 void Start()
 {
     logicaPersonaje1 = GameObject.FindGameObjectWithTag("Player").GetComponent <LogicaPersonaje1>();
 }