Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2013
1,657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Threading;
  4.  
  5. public class NewBehaviourScript : MonoBehaviour {
  6.     void Start () {
  7.     }
  8.     void Update () {
  9.         if(Input.GetKey (KeyCode.Space)) {
  10.             Thread t = new Thread(new ThreadStart(test));
  11.             t.Start ();
  12.         }
  13.     }
  14.     void test() {
  15.         Cube.transform.position += transform.right;
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement