Skip to content

Instantly share code, notes, and snippets.

@CapnRat
Created October 19, 2014 16:45
Show Gist options
  • Select an option

  • Save CapnRat/117833306489ee72607e to your computer and use it in GitHub Desktop.

Select an option

Save CapnRat/117833306489ee72607e to your computer and use it in GitHub Desktop.

Revisions

  1. CapnRat created this gist Oct 19, 2014.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    using UnityEngine;
    using System.Collections;

    public class CraneMover : MonoBehaviour
    {
    public bool craneMove = false;

    void Update ()
    {
    if (Input.GetKeyDown(KeyCode.Space))
    craneMove = !craneMove;
    }
    }