mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 20:52:10 +01:00
added base team class
This commit is contained in:
@@ -5,9 +5,21 @@ using UnityEngine;
|
||||
public class GameMaster : MonoBehaviour
|
||||
{
|
||||
[Header("GameMaster")]
|
||||
[SerializeField] private int[] scores;
|
||||
[SerializeField] private List<Team> teams = new List<Team>();
|
||||
private void Start()
|
||||
{
|
||||
|
||||
CreateTeam("Orange");
|
||||
CreateTeam("Blue");
|
||||
}
|
||||
|
||||
private void CreateTeam(string name, int score = 0)
|
||||
{
|
||||
Team team = new Team(name, score);
|
||||
teams.Add(team);
|
||||
}
|
||||
|
||||
public List<Team> GetTeams()
|
||||
{
|
||||
return teams;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user