Player selector separated

This commit is contained in:
RochesterX
2025-02-19 20:11:57 -05:00
parent feeebaafc9
commit 730a664158
11 changed files with 388 additions and 116 deletions

View File

@@ -1,3 +1,4 @@
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
@@ -10,4 +11,18 @@ public class GameManager : MonoBehaviour
}
public static GameMode gameMode = GameMode.freeForAll;
public static string map = "Platformer With Headroom";
public static List<GameObject> players = new List<GameObject>();
public Vector2 spawnPosition;
private void Start()
{
foreach (GameObject player in players)
{
player.transform.position = spawnPosition;
}
}
}