Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- СКРИПТ:
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class Base : MonoBehaviour
- {
- public Text MoneyText;
- public int Score;
- // Start is called before the first frame update
- void Start()
- {
- }
- public void Click()
- {
- Score++;
- }
- // Update is called once per frame
- void Update()
- {
- MoneyText.text = Score.ToString();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement