Test Push Target
This commit is contained in:
+1
-1
@@ -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="1691000" />
|
<workItem from="1680813239896" duration="1933000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ public class NoPlayablePlayer : Player
|
|||||||
//Der Spieler steht gerade
|
//Der Spieler steht gerade
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
if (currentField.placedItem != null)
|
if (currentField.placedItem != null)
|
||||||
{
|
{
|
||||||
Trap t = currentField.placedItem.GetComponent<Trap>();
|
Trap t = currentField.placedItem.GetComponent<Trap>();
|
||||||
@@ -177,6 +178,7 @@ 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);
|
||||||
|
|||||||
@@ -172,13 +172,16 @@ public class PlayablePlayer : Player
|
|||||||
//Der Spieler steht gerade
|
//Der Spieler steht gerade
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (currentField.placedItem != null)
|
if (currentField != null)
|
||||||
{
|
{
|
||||||
Trap t = currentField.placedItem.GetComponent<Trap>();
|
if (currentField.placedItem != null)
|
||||||
AddCoins(-3);
|
{
|
||||||
t.target.AddCoins(3);
|
Trap t = currentField.placedItem.GetComponent<Trap>();
|
||||||
Destroy(t);
|
AddCoins(-3);
|
||||||
currentField.placedItem = null;
|
t.target.AddCoins(3);
|
||||||
|
Destroy(t);
|
||||||
|
currentField.placedItem = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Vector3 currentRotation = Quaternion.ToEulerAngles(transform.rotation);
|
Vector3 currentRotation = Quaternion.ToEulerAngles(transform.rotation);
|
||||||
currentRotation.y = -34;
|
currentRotation.y = -34;
|
||||||
|
|||||||
Reference in New Issue
Block a user