Advertisement
LittleAngel

Untitled

May 9th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class NewBehaviourScript : MonoBehaviour {
  5.  
  6. public GameObject questionMark;
  7.  
  8. // Use this for initialization
  9. void Start () {
  10. questionMark.SetActive(false);
  11. }
  12.  
  13. // Update is called once per frame
  14. void Update () {
  15. if (Input.GetKey ("g")) {
  16. questionMark.SetActive(true);
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement