Separate respawn script

Make respawning a separate script; make Bones respawnable
This commit is contained in:
RochesterX
2025-01-15 14:07:17 -05:00
parent 0bfc2415df
commit 63775c5103
7 changed files with 8572 additions and 158 deletions

View File

@@ -3,8 +3,6 @@ using UnityEngine;
public class PlatformerCameraMovement : MonoBehaviour
{
public List<GameObject> players;
private Vector3 start;
private Vector3 target;
public float weight;
@@ -17,7 +15,9 @@ public class PlatformerCameraMovement : MonoBehaviour
private void Update()
{
if (PlayerManager.Instance.players.Count == 0) return;
List<GameObject> players = PlayerManager.Instance.players;
if (players.Count == 0) return;
Vector3 playerAverage = Vector3.zero;
foreach (GameObject player in players)