Switching Teams with btns

This commit is contained in:
DerTyp187
2021-12-09 13:12:02 +01:00
parent b3ee44a9e3
commit e8499c91d1
11 changed files with 424 additions and 57 deletions

View File

@@ -5,10 +5,19 @@ using Mirror;
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);