Files
Crash-Course/Assets/Scripts/GameManager.cs
2025-02-21 11:51:11 -05:00

43 lines
912 B
C#

<<<<<<< Updated upstream
using System.Collections.Generic;
=======
using Unity.VisualScripting;
>>>>>>> Stashed changes
using UnityEngine;
public class GameManager : MonoBehaviour
{
public startGame
{
if GameMode = GameMode.freeForAll(
Start freeForAll)
if GameMode = GameMode.freeForAll(
Start freeForAll)
if GameMode = GameMode.freeForAll(
Start freeForAll);
}
public enum GameMode
{
freeForAll,
keepAway,
obstacleCourse
}
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;
}
}
}