10 lines
298 B
C#
10 lines
298 B
C#
using System;
|
|
using Actions;
|
|
using UnityEngine;
|
|
|
|
public class ScreenShakeActions : MonoBehaviour {
|
|
private void Start() => ShootAction.OnAnyShoot += ShootAction_OnAnyShoot;
|
|
|
|
private void ShootAction_OnAnyShoot(object sender, ShootAction.ShootEventArgs e) => ScreenShake.Instance.Shake();
|
|
}
|