23 lines
439 B
C#
23 lines
439 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class GameManager : MonoBehaviour
|
|
{
|
|
public Text textCoins;
|
|
public void AddCoin()
|
|
{
|
|
textCoins.text = (int.Parse(textCoins.text) + 1).ToString();
|
|
}
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|