20 lines
389 B
C#
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);
|
|
}
|
|
}
|