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); } }