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

20 lines
366 B
C#

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