CHANGED TO MIRROR

This commit is contained in:
DerTyp187
2021-10-25 09:20:01 +02:00
parent bd712107b7
commit e509a919b6
611 changed files with 38291 additions and 1216 deletions

View File

@@ -3,27 +3,33 @@ using System.Collections.Generic;
using UnityEngine;
// Erstellung von Teams
// Auflistung von den Spielern
// Verwaltung der Spieler und Teams
//
public class GameMaster : MonoBehaviour
{
[Header("GameMaster")]
[SerializeField] private List<Team> teams = new List<Team>();
[SerializeField] private List<Player> Players = new List<Player>();
private void Start()
{
CreateTeam("Orange");
CreateTeam("Blue");
MLAPI.NetworkManager.Singleton.StartHost();
}
private void CreateTeam(string name, int score = 0)
private void Update()
{
Team team = new Team(name, score);
teams.Add(team);
if (Input.GetKeyDown(KeyCode.H))
{
Cursor.lockState = CursorLockMode.Confined;
Cursor.visible = true;
}
if (Input.GetKeyDown(KeyCode.J))
{
Cursor.lockState = CursorLockMode.Locked;
Cursor.visible = false;
}
}
public List<Team> GetTeams()
{
return teams;
}
}