예제 #1
0
 public void Boold_On_Torso(Bullet bullet)
 {
     if (GameSettings.Instance.IsBloodOn)
     {
         _bloodFX.TorsoShotFX(bullet.hitInfo);
     }
 }
 void TakeHit(Bullet b)
 {
     bloodFX.TorsoShotFX(b.hitInfo);
     playsplat.Instance.PlaySplatSound();
     Debug.Log("hit eater");
     Zanim.SetTrigger("TookHit");
     iswalking = true;
     hitcount++;
     if (hitcount == 1)  // gameObject.AddComponent<TimerBehavior>();
     {
         StartCoroutine(StartGameIn18());
         StartCoroutine(TriggerDeath());
         KillTimer t = gameObject.transform.parent.transform.parent.gameObject.AddComponent <KillTimer>();
         t.StartTimer(20);
     }
 }