2026-06-17 highlight 에셋추가. 스틱그랩 추가중

This commit is contained in:
2026-06-17 19:06:09 +09:00
parent b162d9fcc7
commit 997c1affbe
274 changed files with 19475 additions and 12 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
namespace HighlightPlus.Demos {
public class HitFxDemo : MonoBehaviour {
public AudioClip hitSound;
void Update() {
if (!InputProxy.GetMouseButtonDown(0)) return;
Ray ray = Camera.main.ScreenPointToRay(InputProxy.mousePosition);
if (Physics.Raycast(ray, out RaycastHit hitInfo)) {
HighlightEffect effect = hitInfo.collider.GetComponent<HighlightEffect>();
if (effect == null) return;
AudioSource.PlayClipAtPoint(hitSound, hitInfo.point);
effect.HitFX(hitInfo.point);
}
}
}
}