Trap active Test 1

This commit is contained in:
AliIbnAbiTalib
2023-04-06 23:16:05 +02:00
parent 840bc3b7a5
commit ef09b2770b
3 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -152,7 +152,7 @@
<workItem from="1680459748883" duration="4859000" /> <workItem from="1680459748883" duration="4859000" />
<workItem from="1680539278905" duration="1085000" /> <workItem from="1680539278905" duration="1085000" />
<workItem from="1680546560659" duration="3839000" /> <workItem from="1680546560659" duration="3839000" />
<workItem from="1680813239896" duration="1933000" /> <workItem from="1680813239896" duration="2480000" />
</task> </task>
<servers /> <servers />
</component> </component>
@@ -169,7 +169,8 @@ public class NoPlayablePlayer : Player
//Der Spieler steht gerade //Der Spieler steht gerade
else else
{ {
/* if (currentField != null)
{
if (currentField.placedItem != null) if (currentField.placedItem != null)
{ {
Trap t = currentField.placedItem.GetComponent<Trap>(); Trap t = currentField.placedItem.GetComponent<Trap>();
@@ -178,7 +179,8 @@ public class NoPlayablePlayer : Player
Destroy(t); Destroy(t);
currentField.placedItem = null; currentField.placedItem = null;
} }
*/ }
Vector3 currentRotation = Quaternion.ToEulerAngles(transform.rotation); Vector3 currentRotation = Quaternion.ToEulerAngles(transform.rotation);
currentRotation.y = -34; currentRotation.y = -34;
transform.rotation = Quaternion.Euler(currentRotation); transform.rotation = Quaternion.Euler(currentRotation);
@@ -106,7 +106,7 @@ public class PlayablePlayer : Player
jumpRequest = true; jumpRequest = true;
wurfelt = true; wurfelt = true;
wurfelZahl = Random.Range(1, 7); wurfelZahl = Random.Range(3, 4);
switch (activeItem) switch (activeItem)
{ {