Item Shop Stop

This commit is contained in:
AlexE030
2023-02-07 20:55:29 +01:00
parent c6589f2d56
commit f36dd36d21
9 changed files with 163 additions and 36 deletions
@@ -17,6 +17,7 @@ public abstract class Player : MonoBehaviour
public int index;
public int coins = 0;
public TMP_Text textCoinsInfo;
protected bool eventstop = false;
//for coin animation
private AnimationHandler animationHandler;
@@ -61,4 +62,9 @@ public abstract class Player : MonoBehaviour
textCoinsInfo.text = coins + "";
PlayAnimation(AnimationType.Coin);
}
private void OnTriggerEnter(Collider c)
{
eventstop = true;
}
}