26 lines
440 B
C#
26 lines
440 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class CarManager : MonoBehaviour
|
|
{
|
|
public GameObject puncture; //爆胎
|
|
|
|
|
|
/// <summary>
|
|
/// 爆胎
|
|
/// </summary>
|
|
public void Puncture()
|
|
{
|
|
if (puncture.activeInHierarchy)
|
|
puncture.SetActive(false);
|
|
else
|
|
{
|
|
puncture.SetActive(true);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} |