fixe 2
This commit is contained in:
@@ -22,30 +22,15 @@ public class ARBullet : MonoBehaviour
|
||||
{
|
||||
if (collision.gameObject.tag == "Enemy")
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
Destroy(collision.gameObject);
|
||||
=======
|
||||
=======
|
||||
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||
EnemyHealth enemy = collision.gameObject.GetComponent<EnemyHealth>();
|
||||
|
||||
if (enemy != null)
|
||||
{
|
||||
enemy.TakeDamage(damage);
|
||||
<<<<<<< HEAD
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||
=======
|
||||
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||
=======
|
||||
}
|
||||
|
||||
Destroy(gameObject);
|
||||
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||
}
|
||||
else if(collision.gameObject.tag == "Wall")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user