This commit is contained in:
2026-04-21 23:02:51 +08:00
parent e6ff3d2c19
commit fbe6ca9605
100 changed files with 10668 additions and 19173 deletions
@@ -0,0 +1,19 @@
using UnityEngine;
// Don't forget to add this.
using CameraShake;
public class ExplosionTrigger : MonoBehaviour
{
private void Update()
{
if (Input.GetKeyDown(KeyCode.Mouse0))
{
FindObjectOfType<Explosion>().Explode();
// Shaking the camera.
CameraShaker.Presets.ShortShake2D();
}
}
}