Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. public class UITest : MonoBehaviour
  7. {
  8.     public int value = 0;
  9.     public Text buttonText;
  10.  
  11.     public void OnButtonClick(int number)
  12.     {
  13.         value *= 10;
  14.         value += 1;
  15.  
  16.  
  17.         buttonText.text = value.ToString();
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement