Created
February 8, 2017 21:40
-
-
Save sabotai/690be125022a17167e1874be463418ac to your computer and use it in GitHub Desktop.
GD205-S17-W2
This file contains hidden or 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 BasicConditionals : MonoBehaviour { | |
| public bool goToWork; | |
| public GameObject mover; | |
| // Use this for initialization | |
| void Start () { | |
| } | |
| // Update is called once per frame | |
| void Update () { | |
| Debug.Log("game object is at ... " + mover.transform.position); | |
| if (Input.GetKeyDown("space")){ | |
| mover.transform.position += new Vector3(0,-5, 0); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment