This commit is contained in:
HIHIHIHIHIHIzz
2026-06-25 16:37:27 +09:00
parent c7aa2584c9
commit e522e8f74b
3 changed files with 31 additions and 2 deletions

Binary file not shown.

View File

@@ -0,0 +1,27 @@
using UnityEngine;
using UnityEngine.VFX;
public class zepe : MonoBehaviour
{
public VisualEffect vfx;
public Animator zepettoAnimator;
public string animationName;
public float delayBeforeVFX;
private bool hasPlayed = false;
private void OnTriggerEnter(Collider other)
{
if (hasPlayed) return;
if (!other.CompareTag("Player")) return;
hasPlayed = true;
zepettoAnimator.Play(animationName);
Invoke("PlayVFX", delayBeforeVFX);
}
private void PlayVFX()
{
vfx.SendEvent("OnPlay");
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e0b9356ed1cc2c746a48ea28d0537dc8