first location is playable

enemies and so on
This commit is contained in:
MrTorex committed 2026-02-03 14:40:52 +03:00
1 parent 6fb38310bc
commit 2c6d4e500f
18 files changed
+2565 -31

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
using Code.Gameplay.Player;
using UnityEngine;
namespace Code.Gameplay.Enemies
{
public class VoidEnemy : MonoBehaviour, IEnemy
{
public void TakeDamage() { }
private void OnTriggerEnter2D(Collider2D other)
{
if (other.CompareTag("Player"))
{
var playerHealth = other.GetComponent<PlayerHealth>();
playerHealth?.TakeDamage(true);
}
}
}
}