mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-29 20:52:10 +01:00 
			
		
		
		
	| @@ -1,23 +1,13 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
| using Mirror; | ||||
|  | ||||
| public class TeamManager : NetworkBehaviour | ||||
| public class TeamManager : MonoBehaviour | ||||
| { | ||||
|     [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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 DerTyp187
					DerTyp187