Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Threading;
- public class NewBehaviourScript : MonoBehaviour {
- void Start () {
- }
- void Update () {
- if(Input.GetKey (KeyCode.Space)) {
- Thread t = new Thread(new ThreadStart(test));
- t.Start ();
- }
- }
- void test() {
- Cube.transform.position += transform.right;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement