Player selector separated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user