Added player death positions

This commit is contained in:
2026-01-19 11:38:02 +00:00
parent 4fb1d1ee47
commit 835a761239
3 changed files with 53 additions and 390 deletions

View File

@@ -1,4 +1,5 @@
using System.IO;
using System.Linq;
using UnityEngine;
namespace InterfaceOff.WorldScene
@@ -12,6 +13,7 @@ namespace InterfaceOff.WorldScene
[SerializeField] private Transform BulletTracerStart;
[SerializeField] private Transform BulletTracerEnd;
[field: SerializeField] public int FrameIndex { get; private set; }
[SerializeField] private int[] DeathIndices;
private float LerpValue;
@@ -26,6 +28,11 @@ namespace InterfaceOff.WorldScene
{
/* Iterates the frame index */
FrameIndex = (FrameIndex + 1) % (Frames.Length - 2);
if (DeathIndices.Contains(FrameIndex))
{
Debug.Log("Possible player death");
}
}
private void Update()