PlayerPlacement

This commit is contained in:
brausjonas
2023-02-27 18:56:16 +01:00
parent 707646fa1c
commit f3cfdffb51
6 changed files with 607 additions and 7 deletions
@@ -58,6 +58,7 @@ public abstract class Player : MonoBehaviour
{
stars += amount;
textStarsInfo.text = stars + "";
Client.GetCurrentInstance().CalculatePlacement();
}
public void AddCoins(int amount)
@@ -69,6 +70,7 @@ public abstract class Player : MonoBehaviour
}
textCoinsInfo.text = coins + "";
PlayAnimation(AnimationType.Coin);
Client.GetCurrentInstance().CalculatePlacement();
}
public void OnTriggerEnter(Collider c)
@@ -7,4 +7,5 @@ public class PlayerInfoElements : MonoBehaviour
{
public TMP_Text textCoinInfo;
public TMP_Text textStarsInfo;
public TMP_Text textPlacement;
}