Esempio n. 1
0
 void OnTriggerEnter(Collider col)
 {
     if (col.tag == "Bullet")
     {
         enemyhealth.AffectHealth(-1);
         transform.position -= transform.forward * KnockBack;
         Destroy(col.gameObject);
     }
 }