Files
defrain-shooter-unity/Assets/Scripts/GameManager/GameMaster.cs
2021-10-25 09:20:01 +02:00

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;
}
}
}