Corrected 'Ennemy' => 'Enemy'
This commit is contained in:
1 parent
d7a2ae1131
commit
d21ccab86c
15 files changed
+165
-32
No files matched your search
@@ -33,17 +33,17 @@ public class Beam : MonoBehaviour
|
||||
|
||||
private void OnTriggerEnter2D(Collider2D collision)
|
||||
{
|
||||
if (collision.CompareTag("Ennemy"))
|
||||
if (collision.CompareTag("Enemy"))
|
||||
{
|
||||
collision.gameObject.GetComponent<Ennemy>().AnimateHit();
|
||||
collision.gameObject.GetComponent<Enemy>().AnimateHit();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTriggerStay2D(Collider2D collision)
|
||||
{
|
||||
if (collision.CompareTag("Ennemy"))
|
||||
if (collision.CompareTag("Enemy"))
|
||||
{
|
||||
collision.gameObject.GetComponent<Ennemy>().Life -= (int)(_manager.BeamDamages * Time.deltaTime);
|
||||
collision.gameObject.GetComponent<Enemy>().Life -= (int)(_manager.BeamDamages * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user