Transferprotocol Definitions

This commit is contained in:
brausjonas
2023-01-31 21:21:42 +01:00
parent e0db81370b
commit b479594017
15 changed files with 88 additions and 25 deletions
@@ -81,6 +81,9 @@ public class PlayablePlayer : Player
{
wurfelZahl--;
//the next field is the current field XD
currentField = nextField;
//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)
{
@@ -93,6 +96,7 @@ public class PlayablePlayer : Player
//TODO: temp spieler finsihed erst, wenn field action ausgeführt wurde
if (wurfelt)
{
currentField.Action(index);
Invoke("Finish", 2);
activated = false;
}
@@ -146,7 +150,6 @@ public class PlayablePlayer : Player
{
interPol = 0;
lastPos = transform.position;
currentField = nextField;
if (nextField.Target.Length == 1)
{
nextField = nextField.Target[0];
@@ -12,6 +12,8 @@ public abstract class Player : MonoBehaviour
protected Vector3 velocity = Vector3.zero;
protected Vector3 cameraOffset = new Vector3(-2.81f, 8.13f, 5.6f);
public int index;
public int coins = 0;
//Aktiviert den Player
public void Activate()