daily pastebin goal
22%
SHARE
TWEET

1

a guest Apr 21st, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top