Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using UnityEngine.UI;
- public Image Break;
- public class ImageBreak : MonoBehaviour {
- void Start()
- {
- Brake.SetActive(false);
- }
- void Update() {
- if (Input.GetKeyDown("space"))
- {
- Brake.SetActive(true);
- }
- else
- {
- Brake.SetActive(false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement