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

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 6262d641981b43889d09dccc3cb72b74
timeCreated: 1768821711

View File

@@ -8,14 +8,11 @@ namespace InterfaceOff.WorldScene
private static PlayerController Instance;
private PlayerFrameInfo[] Frames;
[Header("Bullet Tracer Info")]
[SerializeField] private LineRenderer BulletTracerRenderer;
[SerializeField] private Transform BulletTracerStart;
[SerializeField] private Transform BulletTracerEnd;
[Header("Dev View")]
[SerializeField] private int FrameIndex;
[field: SerializeField] public int FrameIndex { get; private set; }
private float LerpValue;
private void Awake()