Skrr
This commit is contained in:
AliIbnAbiTalib
2023-03-23 21:09:02 +01:00
parent 1a0559addb
commit 09c1c29a09
11 changed files with 178 additions and 1090 deletions
@@ -96,7 +96,6 @@ public class NoPlayablePlayer : Player
if (activated && !name.Equals(""))
{
camera.transform.position = Vector3.SmoothDamp(camera.transform.position, transform.position + cameraOffset, ref velocity, 0.2f);
if (!wait)
{
//Laufe zum nöchsten Feld, falls noch Züge übrig sind
@@ -115,7 +114,7 @@ public class NoPlayablePlayer : Player
textLeftMoves.text = wurfelZahl + "";
//Visiere das nächste Feld an falls noch ein Zug übrig ist (Player steht gerade auf einem Feld oder läuft darüber)
if (wurfelZahl > 0)
if (wurfelZahl > 0)
{
TargetNextField();
}
@@ -125,10 +124,10 @@ public class NoPlayablePlayer : Player
{
if (!wurfelt)
{
//start the dice
dice.transform.position = Vector3.SmoothDamp(dice.transform.position,
transform.position + Vector3.up * 2, ref useLess, 0.2f);
diceScript.StartRandom();
StartDice();
}else if (activated)
{
StartDice();
}
}
}
@@ -191,4 +190,11 @@ public class NoPlayablePlayer : Player
}
}
public void StartDice()
{
//start the dice
dice.transform.position = Vector3.SmoothDamp(dice.transform.position,
transform.position + Vector3.up * 2, ref useLess, 0.2f);
diceScript.StartRandom();
}
}