private void OnTriggerEnter(Collider other) { if (!other.gameObject.CompareTag("Gem")) { EndScreen.Open(); Debug.Log("boinga"); } if (other.gameObject.CompareTag("Gem")) { ScoreScript.scoreValue += 1; } }
public override IEnumerator Run() { EndScreen fader = CanvasManager.instance.Get<EndScreen>(UIPanelID.EndScreen); fader.Open(); yield return null; }