SLEAPY_SMURF/Assets/Scripts/MüntideLugeja.cs

23 lines
430 B
C#
Raw Normal View History

2023-04-29 20:13:37 +00:00
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class MüntideLugeja : MonoBehaviour
{
public int arv;
public TextMeshProUGUI textMeshProUGUI;
public void AnnaMünte(int arv)
{
this.arv += arv;
2023-04-29 21:50:24 +00:00
textMeshProUGUI.text = this.arv + "";
}
public void Nulli()
{
this.arv = 0;
textMeshProUGUI.text = this.arv + "";
2023-04-29 20:13:37 +00:00
}
}