E_ElecCompetition/Electrical_inspectionCompet.../Assets/Script/GameManager/DoolsPlayer.cs

20 lines
389 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DoolsPlayer : MonoBehaviour
{
[SerializeField] door_control mesh;
// Start is called before the first frame update
void Start()
{
mesh. = false;
}
private void OnMouseDown()
{
mesh. = true;
gameObject.SetActive(false);
}
}