You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
484 B

using System;
using UnityEngine;
using UnityEngine.UI;
public class Goal : MonoBehaviour
{
public GameObject WinUI;
public AudioClip Win;
private void OnTriggerEnter(Collider other)
{
if (other.tag == "IceBlock")
{
Debug.Log("Win");
WinUI.SetActive(true);
}
if (WinUI.activeSelf)
{
BackgroundManager.StopBG();
BackgroundManager.PlayBG(false,Win);
}
}
}