mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 20:52:10 +01:00
36 lines
703 B
C#
36 lines
703 B
C#
using System.Collections;
|
|
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<Player> Players = new List<Player>();
|
|
private void Start()
|
|
{
|
|
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.H))
|
|
{
|
|
Cursor.lockState = CursorLockMode.Confined;
|
|
Cursor.visible = true;
|
|
}
|
|
|
|
if (Input.GetKeyDown(KeyCode.J))
|
|
{
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
Cursor.visible = false;
|
|
}
|
|
}
|
|
}
|