Created
October 19, 2014 16:45
-
-
Save CapnRat/117833306489ee72607e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class CraneMover : MonoBehaviour | |
{ | |
public bool craneMove = false; | |
void Update () | |
{ | |
if (Input.GetKeyDown(KeyCode.Space)) | |
craneMove = !craneMove; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment