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

51 lines
711 B
C#

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