示例#1
0
 private void OnTriggerEnter(Collider other)    //아이템 습득
 {
     if (other.gameObject.CompareTag("Player")) //아이템과 닿은 오브젝트의 태그가 플레이어일 경우
     {
         smooth.GoldSound();                    //골드 줍는 사운드 출력 호출
         //other.GetComponent<PlayerTestMove>().Item = true;
         beamPaticle.SetActive(false);
         ItemPooling.ReturnObject(this);
     }
 }