// Update is called once per frame void Update() { counter += Time.deltaTime; if (counter >= 2) { ganar = GameObject.Find("Canvas").GetComponent <Ganar>(); ganar.perder(); } }
private void Start() { g = GameObject.FindWithTag("Player").GetComponent <Ganar>(); }
private void Start() { ganar = GameObject.Find("Canvas").GetComponent <Ganar>(); }