This commit is contained in:
brausjonas
2023-01-29 00:25:54 +01:00
parent a6dd6752c1
commit da8ce4b425
19 changed files with 950 additions and 22 deletions
@@ -24,7 +24,7 @@ public class PlayablePlayer : Player
public Client client;
public void Init()
public override void Init()
{
activated = false;
QualitySettings.vSyncCount = 0;
@@ -34,7 +34,7 @@ public class PlayablePlayer : Player
private void Update()
{
if (activated)
if (activated && !name.Equals(""))
{
//Generiere Würfelzahl von 1-6 wenn gerade gewürfelt werden darf
if ((Input.GetMouseButtonDown(0)) && wurfelZahl == 0 && !wurfelt)
@@ -58,7 +58,7 @@ public class PlayablePlayer : Player
private void FixedUpdate()
{
if (activated)
if (activated && !name.Equals(""))
{
camera.transform.position = Vector3.SmoothDamp(camera.transform.position, transform.position + cameraOffset, ref velocity, 0.2f);