using System.Collections; using System.Collections.Generic; using UnityEngine; using Cinemachine; public class ScreenShakeManager : Singleton { private CinemachineImpulseSource source; protected override void Awake() { base.Awake(); source = GetComponent(); } public void ShakeScreen() { source.GenerateImpulse(); } }