Made enemies die

This commit is contained in:
2026-01-19 11:32:57 +00:00
parent 47994ca649
commit 4fb1d1ee47
7 changed files with 155 additions and 428 deletions

View File

@@ -0,0 +1,14 @@
using UnityEngine;
namespace InterfaceOff.WorldScene
{
public class EnemyController : MonoBehaviour
{
[SerializeField] private PlayerController Player;
[SerializeField] private int DeathIndex = 500;
[SerializeField] private GameObject Renderer;
private void Update() =>
Renderer.SetActive(DeathIndex > Player.FrameIndex);
}
}