public static void MainCameraShake(float magnitude, float duration) { CameraShake s = Camera.main.gameObject.GetOrAddComponent <CameraShake>(); s.Shake(magnitude, duration); }
public static void MainCameraShake() { CameraShake s = Camera.main.gameObject.GetOrAddComponent <CameraShake>(); s.Shake(); }