32 lines
583 B
C#
32 lines
583 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using TMPro;
|
|
|
|
public class Akciopont : MonoBehaviour
|
|
{
|
|
public TMP_Text text;
|
|
|
|
public int akciopont = 0;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
text.text = "Akciópontok: ";
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
text.text = "Akciópontok: " + akciopont;
|
|
}
|
|
|
|
public void UpdateAkciopont(int number) {
|
|
akciopont += number;
|
|
}
|
|
|
|
public void resetAkciopont() {
|
|
akciopont = 0;
|
|
}
|
|
}
|