Merging retry

This commit is contained in:
DerTyp187
2021-12-16 22:08:59 +01:00
parent 151f63c9fb
commit 0beeed4540
53 changed files with 8373 additions and 6 deletions

View File

@@ -1,13 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
public class TeamManager : MonoBehaviour
public class TeamManager : NetworkBehaviour
{
[SerializeField]
public List<Team> Teams = new List<Team>();
int teamIdCount = 0;
public void Start()
{
//Create Speactator Team with index 0
Team specTeam = new Team("Spectators", 0, -1);
Teams.Add(specTeam);
}
public Team AddTeam(string name = "Team")
{
Team team = new Team(name, teamIdCount, -1);