hillclimb2d/Assets/Scripts/GameManager.cs
2025-03-21 14:18:07 +05:30

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()
{
}
}