Advertisement
Guest User

Untitled

a guest
May 27th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections;
  4.  
  5. public class Click : MonoBehaviour {
  6.  
  7.     Parametres parametres = new Parametres();
  8.     public Text ui;
  9.  
  10.     void Update()
  11.     {
  12.         ui.text = parametres.i.ToString();
  13.         if(Input.GetKeyDown(KeyCode.C))
  14.         {
  15.             parametres.i += 20;
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement