예제 #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (!other.gameObject.CompareTag("Gem"))
        {
            EndScreen.Open();
            Debug.Log("boinga");
        }

        if (other.gameObject.CompareTag("Gem"))
        {
            ScoreScript.scoreValue += 1;
        }
    }
예제 #2
0
	public override IEnumerator Run()
	{
		EndScreen fader = CanvasManager.instance.Get<EndScreen>(UIPanelID.EndScreen);
		fader.Open();
		yield return null;
	}