This commit is contained in:
2026-06-06 09:19:46 +07:00
parent 75b005c691
commit f70ddddf65
15 changed files with 1059 additions and 247 deletions

View File

@@ -1,3 +1,4 @@
using System;
using UnityEngine;
using Hallucinate.Audio;
using Invector;
@@ -64,6 +65,15 @@ public class LaserProjectile : MonoBehaviour
}
}
private void OnCollisionEnter(Collision other)
{
if (other.gameObject.layer == LayerMask.NameToLayer("Ground") || other.gameObject.tag == "Ground")
{
Impact();
return;
}
}
private void Impact()
{
// Chạy âm thanh