Small Stuff:)

This commit is contained in:
brausjonas
2023-04-15 00:31:36 +02:00
parent 95e4d9d0fd
commit b638de4b06
11 changed files with 17 additions and 17 deletions
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -2608,7 +2608,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Public match
m_text: 'Public Room
'
m_isRightToLeft: 0
@@ -3068,7 +3068,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -0.37069702}
m_AnchoredPosition: {x: 0, y: -0.37072754}
m_SizeDelta: {x: 0, y: 10.746399}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1440669665
+1 -2
View File
@@ -173,7 +173,6 @@ public class Client : MonoBehaviour
script.dice = dice;
script.camera = cam;
script.imageCurrentItem = imageCurrentItem;
script.textName = playerNameTexts[job.data[5]];
//ITEM INFO IMAGES
Image[] temp = new Image[3];
@@ -207,7 +206,6 @@ public class Client : MonoBehaviour
script.dice = dice;
script.camera = cam;
script.imageCurrentItem = imageCurrentItem;
script.textName = playerNameTexts[job.data[5]];
//ITEM INFO IMAGES
Image[] temp = new Image[3];
@@ -231,6 +229,7 @@ public class Client : MonoBehaviour
//---------------------------------------------------------
//-----Activate a Player
case 2:
players[job.data[1]].nameSign.SetActive(false);
diceScript.SetMaterial(0);
Activate(job.data[1]);
break;
@@ -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;