Vibrations On Enemy death and shoot

dev-ali
Ali Sharoz 2 months ago
parent 9cb08a3693
commit f360b98a13

@ -3,6 +3,7 @@ using System.Collections;
using D2D.Core; using D2D.Core;
using D2D.Utilities; using D2D.Utilities;
using DG.Tweening; using DG.Tweening;
using Lofelt.NiceVibrations;
using UnityEngine; using UnityEngine;
using static D2D.Utilities.CommonGameplayFacade; using static D2D.Utilities.CommonGameplayFacade;
@ -169,6 +170,7 @@ namespace D2D.Gameplay
if(!_isPlayer) if(!_isPlayer)
{ {
_enemySpawn.EnemyDeathAudio.Play(); _enemySpawn.EnemyDeathAudio.Play();
HapticPatterns.PlayPreset(HapticPatterns.PresetType.MediumImpact);
} }
if (_isGrayFadeout) if (_isGrayFadeout)
{ {

@ -1,5 +1,6 @@
using D2D; using D2D;
using D2D.Utilities; using D2D.Utilities;
using Lofelt.NiceVibrations;
using UnityEngine; using UnityEngine;
using static D2D.Utilities.CommonGameplayFacade; using static D2D.Utilities.CommonGameplayFacade;
@ -70,6 +71,8 @@ public class PistolMember : SquadMember
{ {
ShootSound.pitch = val; ShootSound.pitch = val;
ShootSound.Play(); ShootSound.Play();
HapticPatterns.PlayPreset(HapticPatterns.PresetType.LightImpact);
} }
} }

Loading…
Cancel
Save