Skip to content

Instantly share code, notes, and snippets.

@CapnRat
Created October 19, 2014 16:45
Show Gist options
  • Save CapnRat/117833306489ee72607e to your computer and use it in GitHub Desktop.
Save CapnRat/117833306489ee72607e to your computer and use it in GitHub Desktop.
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