Advertisement
Nity_OFFICIAL

Clicker 1.0 Script

Feb 7th, 2024
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | Source Code | 0 0
  1. СКРИПТ:
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class Base : MonoBehaviour
  7. {
  8.     public Text MoneyText;
  9.     public int Score;
  10.     // Start is called before the first frame update
  11.     void Start()
  12.     {
  13.        
  14.     }
  15.     public void Click()
  16.     {
  17.         Score++;
  18.     }
  19.     // Update is called once per frame
  20.     void Update()
  21.     {
  22.         MoneyText.text = Score.ToString();
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement