This commit is contained in:
AliIbnAbiTalib
2023-04-06 23:02:36 +02:00
parent 6954dc5c88
commit fe220c4e4e
3 changed files with 18 additions and 4 deletions
@@ -172,6 +172,14 @@ public class PlayablePlayer : Player
//Der Spieler steht gerade
else
{
if (currentField.placedItem != null)
{
Trap t = currentField.placedItem.GetComponent<Trap>();
AddCoins(-3);
t.target.AddCoins(3);
Destroy(t);
currentField.placedItem = null;
}
Vector3 currentRotation = Quaternion.ToEulerAngles(transform.rotation);
currentRotation.y = -34;
transform.rotation = Quaternion.Euler(currentRotation);