mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2026-07-31 07:29:02 +02:00
idk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
15
Assets/Scripts/GameManager/Manager.cs
Normal file
15
Assets/Scripts/GameManager/Manager.cs
Normal 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";
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/GameManager/Manager.cs.meta
Normal file
11
Assets/Scripts/GameManager/Manager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58bd0a0557e21bf4e8ea0e0cd4e9d057
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user