Пример #1
0
    public void GotHit(Damager damager, Damageable damageable)
    {
        m_Flicker.StartColorFickering(damageable.invulnerabilityDuration, 0.1f);

        //Hit effect
        VFXController.Instance.Trigger(m_HitEffectHash, transform.position, 0.1f, false, null);
    }
 public void GotHit(Damager damager, Damageable damageable)
 {
     m_Flicker.StartColorFickering(damageable.invulnerabilityDuration, timeBetweenFlickering);
     VFXController.Instance.Trigger(m_HitEffectHash, transform.position, 0, false, null);
     if (hitAudio != null)
     {
         hitAudio.PlayRandomSound();
     }
 }