Advertisement
Guest User

1

a guest
Apr 21st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.UI;
  4.  
  5. public Image Break;
  6.  
  7.  
  8. public class ImageBreak : MonoBehaviour {
  9. void Start()
  10. {
  11. Brake.SetActive(false);
  12. }
  13.  
  14. void Update() {
  15. if (Input.GetKeyDown("space"))
  16. {
  17. Brake.SetActive(true);
  18. }
  19. else
  20. {
  21. Brake.SetActive(false);
  22. }
  23.  
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement