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); }
//1 = crece //2 = aumenta velocidad //3 = aumenta salto // Start is called before the first frame update void Start() { logicaPersonaje1 = GameObject.FindGameObjectWithTag("Player").GetComponent <LogicaPersonaje1>(); }