sync dice
dice synced for noplayableplayers
This commit is contained in:
@@ -73,7 +73,7 @@ public class PlayablePlayer : Player
|
||||
switch (activeItem)
|
||||
{
|
||||
case Item.Type.Mushroom: wurfelZahl += 3; activeItem = Item.Type.None; break;
|
||||
case Item.Type.DoubleDice: checkDoubleDice = true; break;
|
||||
case Item.Type.DoubleDice: checkDoubleDice = true; activeItem = Item.Type.None; break;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -300,4 +300,11 @@ public class PlayablePlayer : Player
|
||||
transform.position + Vector3.up * 2, ref useLess, 0.2f);
|
||||
diceScript.StartRandom();
|
||||
}
|
||||
}
|
||||
|
||||
public void ActivateItem(int index)
|
||||
{
|
||||
activeItem = items[index].type;
|
||||
items[index] = null;
|
||||
client.SendActiveItem((byte)index);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user