SLEAPY_SMURF/Assets/Scripts/MüntideLugeja.cs

23 lines
430 B
C#

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;
textMeshProUGUI.text = this.arv + "";
}
public void Nulli()
{
this.arv = 0;
textMeshProUGUI.text = this.arv + "";
}
}