Skip to content

Instantly share code, notes, and snippets.

Created July 19, 2016 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/649b6c6e5fcdc58351a290c5e5dcf28a to your computer and use it in GitHub Desktop.
Save anonymous/649b6c6e5fcdc58351a290c5e5dcf28a to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class NumberWizard : MonoBehaviour {
// Use this for initialization
void Start () {
print("welcome to Number Wizard");
print("pick a number in your head ,but don't tell me");
int max = 1000;
int min = 1;
print("The highest number you can pick is " +max);
print("The lowest number you can pick is " +min);
print("Is the number higher or lower than 500?");
print("Up arrow for higher,down for lower,return for equal");}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown(KeyCode.UpArrow)){
print("Up arrow pressed");
}
if(Input.GetKeyDown(KeyCode.DownArrow)){
print("Down Arrow pressed");
}
if(Input.GetKeyDown(KeyCode.Return)){
print("I won");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment