This commit is contained in:
kridoo
2025-11-14 19:34:36 +08:00
parent de88d2d6a1
commit 5ba318796f
77 changed files with 4244 additions and 11632 deletions

View File

@@ -53,12 +53,23 @@ public class SingleTouchPlayAnimator : MonoBehaviour
// }
//}
}
[SerializeField] private GameObject Vfx;
[SerializeField] private GameObject Vfx1;
private void OnTriggerEnter(Collider other)
{
if (other.gameObject.name == "PalmBox_L" || other.gameObject.name == "PalmBox_R")
{
SetTriggerParameter("DisTrigger");
if (Vfx != null)
{
Destroy(Vfx);
Vfx = null;
}
if (Vfx1 != null)
{
Destroy(Vfx1);
Vfx1 = null;
}
animator.Play("Touch");
animatorpig.Play("Touch");
}