Make PlayerManager a singleton; update to editor version 6000.0.33f1

This commit is contained in:
RochesterX
2025-01-15 13:34:36 -05:00
parent 9eb33be4bf
commit 4e64f90a58
3 changed files with 26 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ public class PlatformerCameraMovement : MonoBehaviour
private void Update()
{
if (players.Count == 0) return;
if (PlayerManager.Instance.players.Count == 0) return;
Vector3 playerAverage = Vector3.zero;
foreach (GameObject player in players)