using System.Collections;
using System.Collections.Generic;using UnityEngine;
public class XiaoHao rigger : MonoBehaviour
11 Start is called before the first frame updatepublic GameObjec chf;
private void OnTriggerEnter(Collider other)
if(other.tag-="Player")chf.SetActive(true);
private void OnTriggerExitCollider other)iflother.tag=-"Player")
chf.SetActive(false);
1