Small Stuff:)
This commit is contained in:
@@ -25,8 +25,6 @@ public class NoPlayablePlayer : Player
|
||||
|
||||
private bool checkDoubleDice = false;
|
||||
|
||||
public TMP_Text textName;
|
||||
|
||||
//Animation:
|
||||
private Vector3 lastPosAnim = Vector3.zero;
|
||||
private bool jumpRequest = false;
|
||||
@@ -40,6 +38,8 @@ public class NoPlayablePlayer : Player
|
||||
|
||||
activated = false;
|
||||
diceScript = dice.GetComponent<Dice>();
|
||||
|
||||
nameSign = playerTexts[1].gameObject;
|
||||
}
|
||||
|
||||
private void Start()
|
||||
@@ -99,7 +99,6 @@ public class NoPlayablePlayer : Player
|
||||
|
||||
public void Wurfeln(int wurfelZahl)
|
||||
{
|
||||
textName.gameObject.SetActive(true);
|
||||
diceScript.SetMaterial(0);
|
||||
|
||||
jumpRequest = true;
|
||||
@@ -159,6 +158,7 @@ public class NoPlayablePlayer : Player
|
||||
//delay
|
||||
if (Time.time - timeSinceWurfeln > 2)
|
||||
{
|
||||
nameSign.SetActive(true);
|
||||
dice.SetActive(false);
|
||||
InterPolerate();
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ public class PlayablePlayer : Player
|
||||
|
||||
private static PlayablePlayer instance;
|
||||
|
||||
public TMP_Text textName;
|
||||
|
||||
//Animation:
|
||||
private Vector3 lastPosAnim = Vector3.zero;
|
||||
@@ -53,6 +52,8 @@ public class PlayablePlayer : Player
|
||||
diceScript = dice.GetComponent<Dice>();
|
||||
|
||||
instance = this;
|
||||
|
||||
nameSign = playerTexts[1].gameObject;
|
||||
}
|
||||
|
||||
public static PlayablePlayer GetCurrentInstance()
|
||||
@@ -99,7 +100,6 @@ public class PlayablePlayer : Player
|
||||
{
|
||||
if (!Physics.Raycast(new Vector3(Input.mousePosition.x, Input.mousePosition.y, -200), Vector3.forward))
|
||||
{
|
||||
textName.gameObject.SetActive(true);
|
||||
DiceRollRoutine();
|
||||
}
|
||||
}
|
||||
@@ -115,7 +115,7 @@ public class PlayablePlayer : Player
|
||||
jumpRequest = true;
|
||||
|
||||
wurfelt = true;
|
||||
wurfelZahl = Random.Range(4, 5);
|
||||
wurfelZahl = Random.Range(1, 7);
|
||||
|
||||
switch (activeItem)
|
||||
{
|
||||
@@ -160,6 +160,7 @@ public class PlayablePlayer : Player
|
||||
//delay
|
||||
if (Time.time - timeSinceWurfeln > 2)
|
||||
{
|
||||
nameSign.SetActive(true);
|
||||
dice.SetActive(false);
|
||||
InterPolerate();
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@ public abstract class Player : MonoBehaviour
|
||||
public Image[] itemInfoImages;
|
||||
|
||||
protected Animator animator;
|
||||
|
||||
public GameObject nameSign;
|
||||
|
||||
//for coin animation
|
||||
private AnimationHandler animationHandler;
|
||||
|
||||
Reference in New Issue
Block a user