H_SafeExperienceDrivingSystem/U3D_DrivingSystem/Assets/Script/Manaegr/CarManager.cs

36 lines
728 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class CarManager : MonoBehaviour
{
public GameObject puncture; //爆胎
public GameObject UIl;
// private void OnTriggerEnter(Collider other)
// {
// if (other.name == "爆胎")
// {
// puncture.SetActive(true);
// UIl.SetActive(true);
// }
// }
// /// <summary>
// /// 爆胎
// /// </summary>
// public void Puncture()
// {
// if (puncture.activeInHierarchy)
// puncture.SetActive(false);
// else
// {
// puncture.SetActive(true);
// }
// }
//
}