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

45 lines
678 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InteractiveModel4_2 : ToolBase
{
public GameObject ;
// Start is called before the first frame update
protected override void Start()
{
base.Start();
}
// Update is called once per frame
protected override void Update()
{
base.Update();
}
private void OnTriggerEnter(Collider other)
{
if (other.name == "笔头")
{
Debug.Log("笔头");
.SetActive(false);
. = .;
= true;
}
}
}