16 lines
360 B
C#
16 lines
360 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BlockDrop_Exit : MonoBehaviour
|
|
{
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
if(other.gameObject.CompareTag("Player"))
|
|
{
|
|
BlockDrop_GameManager3D.Instance.GameWon.SetActive(true);
|
|
Time.timeScale = 0;
|
|
}
|
|
}
|
|
}
|