E_ElecCompetition/Electrical_inspectionCompet.../Assets/Script/Interactive objects/interAreacheck.cs

32 lines
500 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class interAreacheck : FlowInterObjectBase
{
public string otherName;
// Start is called before the first frame update
private void OnTriggerEnter(Collider other)
{
Debug.Log("触发");
if (first == true)
{ if (other.name == otherName)
{
= true;
}
}
}
}