diff --git a/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml b/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml
index f5a4092..9164de1 100644
--- a/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml
+++ b/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml
@@ -4,7 +4,10 @@
-
+
+
+
+
@@ -40,25 +43,25 @@
- {
- "keyToString": {
- "Discover.Launch.Via.Unity": "true",
- "RunOnceActivity.OpenProjectViewOnStart": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "WebServerToolWindowFactoryState": "false",
- "node.js.detected.package.eslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "vue.rearranger.settings.migration": "true"
+
+}]]>
@@ -170,6 +173,7 @@
+
diff --git a/FlufflParty/Assets/Scripts/Players/PlayablePlayer.cs b/FlufflParty/Assets/Scripts/Players/PlayablePlayer.cs
index 3e222c7..0118138 100644
--- a/FlufflParty/Assets/Scripts/Players/PlayablePlayer.cs
+++ b/FlufflParty/Assets/Scripts/Players/PlayablePlayer.cs
@@ -4,6 +4,8 @@ using System.Collections.Generic;
using System.Net.Mail;
using TMPro;
using Unity.VisualScripting;
+using UnityEditor;
+using UnityEditor.Timeline.Actions;
using UnityEngine;
using UnityEngine.UI;
using Random = UnityEngine.Random;
@@ -303,6 +305,24 @@ public class PlayablePlayer : Player
Invoke("StopRotator", 2);
Invoke("ActivateLayout1", 5.5f);
break;
+
+ case 3: //Item Field keine Ahnung ob das funktioniert XD muss man mal testen; Keine Ahnung was SendStartRotator an den Server weitersendet MUSS überarbeitet werden
+ RandomRotator rotatorItemField = uiHandler.rotator.GetComponent();
+ this.rotator = rotatorItemField;
+ uiHandler.ActivateRotator();
+ rotatorItemField.SetOptionsText(0, "Mushroom");
+ rotatorItemField.SetOptionsText(1, "Double Dice");
+ rotatorItemField.SetOptionsText(2, "Trap");
+
+ rotatorItemField.StartRandom();
+ //???client.SendStartRotator(0, 1, 2, randCoins1, randCoins2, -randCoins3, 0, 0);
+
+ int randomItemField = Random.Range(0, 3);
+ AddItem(client.items[randomItemField]);
+ rotatorStopIndex = randomItemField;
+ Invoke("StopRotator", 2);
+ Invoke("ActivateLayout1", 5.5f);
+ break;
}
if (!checkDoubleDice)