This commit is contained in:
DerTyp187
2021-10-28 08:29:41 +02:00
parent 57ee0da640
commit f2e8de1537
13 changed files with 362 additions and 144 deletions

View File

@@ -1,7 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
// Erstellung von Teams
@@ -12,10 +12,10 @@ using UnityEngine;
public class GameMaster : MonoBehaviour
{
[Header("GameMaster")]
[SerializeField] private List<Player> Players = new List<Player>();
[SerializeField] private List<Player> Players = new List<Player>();
public GameObject localPlayer;
private void Start()
{
}
private void Update()
@@ -33,4 +33,8 @@ public class GameMaster : MonoBehaviour
Cursor.visible = false;
}
}
}

View File

@@ -0,0 +1,15 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
public class Manager : NetworkManager
{
public override void OnClientConnect(NetworkConnection conn)
{
base.OnClientConnect(conn);
//Debug.Log(conn.identity.gameObject.GetComponent<Player>().username);
//conn.identity.gameObject.GetComponent<Player>().username = "Test";
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 58bd0a0557e21bf4e8ea0e0cd4e9d057
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: